diff --git a/source/gui/place.cpp b/source/gui/place.cpp index f1b4a5ff..257e4656 100644 --- a/source/gui/place.cpp +++ b/source/gui/place.cpp @@ -3058,7 +3058,7 @@ namespace nana throw std::runtime_error("place.bind: it has already bound to a window."); impl_->window_handle = wd; - impl_->event_size_handle = API::events(wd).resized.connect([this](const arg_resized& arg) + impl_->event_size_handle = API::events(wd).resized.connect_unignorable([this](const arg_resized& arg) { if (impl_->root_division) { diff --git a/source/gui/place_parts.hpp b/source/gui/place_parts.hpp index 4511dc95..b17be9cd 100644 --- a/source/gui/place_parts.hpp +++ b/source/gui/place_parts.hpp @@ -260,7 +260,7 @@ namespace nana notifier_->request_close(); }); - this->events().resized.connect([this](const arg_resized& arg) + this->events().resized.connect_unignorable([this](const arg_resized& arg) { rectangle r{ 0, 0, arg.width, 20 }; caption_.move(r); @@ -360,7 +360,7 @@ namespace nana API::set_parent_window(handle(), container_->handle()); this->move({ 1, 1 }); - container_->events().resized.connect([this](const arg_resized& arg) + container_->events().resized.connect_unignorable([this](const arg_resized& arg) { this->size({arg.width - 2, arg.height - 2}); });