Centralize retained panel popup attachment
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "legacy_quick_ui_services.h"
|
||||
|
||||
#include "app.h"
|
||||
#include "legacy_ui_overlay_services.h"
|
||||
#include "node_image.h"
|
||||
#include "node_stroke_preview.h"
|
||||
|
||||
@@ -95,7 +96,7 @@ private:
|
||||
popup->SetHeight(glm::max(hh, 400.f));
|
||||
popup->SetPositioning(YGPositionTypeAbsolute);
|
||||
popup->SetPosition(popup_pos);
|
||||
panel_.root()->add_child(popup);
|
||||
(void)attach_legacy_overlay_node_to_root(panel_, popup);
|
||||
|
||||
panel_.root()->update();
|
||||
popup->tick(0);
|
||||
@@ -153,7 +154,7 @@ private:
|
||||
|
||||
popup->SetPositioning(YGPositionTypeAbsolute);
|
||||
popup->SetPosition(popup_pos);
|
||||
panel_.root()->add_child(popup);
|
||||
(void)attach_legacy_overlay_node_to_root(panel_, popup);
|
||||
|
||||
panel_.root()->update();
|
||||
popup->tick(0);
|
||||
|
||||
Reference in New Issue
Block a user