small modification

This commit is contained in:
Jinhao 2017-08-31 04:41:43 +08:00
parent 29fc286ba3
commit 2cf0adf777
2 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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});
});