small modification
This commit is contained in:
parent
29fc286ba3
commit
2cf0adf777
@ -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)
|
||||
{
|
||||
|
@ -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});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user