mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Merge pull request #1104 from AppFlowy-IO/fix/appflowy_popover_detach_bugs
fix: set the leader size when attach get called
This commit is contained in:
commit
bdf4e60b48
@ -323,9 +323,21 @@ class PopoverTargetRenderBox extends RenderProxyBox {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void detach() {
|
void detach() {
|
||||||
|
super.detach();
|
||||||
link.leaderOffset = null;
|
link.leaderOffset = null;
|
||||||
link.leaderSize = 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
|
@override
|
||||||
|
Loading…
Reference in New Issue
Block a user