Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: set the leader size when attach get called
appflowye178c7c4f469
diff --git a/frontend/app_flowy/packages/appflowy_popover/lib/src/layout.dart b/frontend/app_flowy/packages/appflowy_popover/lib/src/layout.dartindex d589f18723..f9763db15b 100644--- a/frontend/app_flowy/packages/appflowy_popover/lib/src/layout.dart+++ b/frontend/app_flowy/packages/appflowy_popover/lib/src/layout.dart@@ -323,9 +323,21 @@ class PopoverTargetRenderBox extends RenderProxyBox {@overridevoid detach() {+ super.detach();link.leaderOffset = null;link.leaderSize = null;- super.detach();+ }++ @override+ void attach(covariant PipelineOwner owner) {+ super.attach(owner);+ if (hasSize) {+ // The leaderSize was set after [performLayout], but was+ // set to null when [detach] get called.+ //+ // set the leaderSize when attach get called+ link.leaderSize = size;+ }}@override