From ddc6d6478f849ef10b832bc8b1d8ab7fe9454601 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 9 Nov 2020 18:28:33 +0800 Subject: ... --- src/ui/controls/Popup.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ui/controls/Popup.cpp') diff --git a/src/ui/controls/Popup.cpp b/src/ui/controls/Popup.cpp index f51f2b3b..982aee38 100644 --- a/src/ui/controls/Popup.cpp +++ b/src/ui/controls/Popup.cpp @@ -9,11 +9,10 @@ namespace cru::ui::controls { Popup::Popup(Control* attached_control) : attached_control_(attached_control) { render_object_ = std::make_unique(); + render_object_->SetAttachedControl(this); SetContainerRenderObject(render_object_.get()); - window_host_ = std::make_unique( - this, host::CreateWindowParams( - nullptr, platform::gui::CreateWindowFlags::NoCaptionAndBorder)); + window_host_ = std::make_unique(this); } Popup::~Popup() = default; -- cgit v1.2.3