views: Make size constraints work immediately after set
This commit is contained in:
parent
e06778178a
commit
f607e81fac
1 changed files with 1 additions and 0 deletions
|
@ -390,6 +390,7 @@ gfx::Size NativeWindowViews::GetContentSize() {
|
||||||
void NativeWindowViews::SetContentSizeConstraints(
|
void NativeWindowViews::SetContentSizeConstraints(
|
||||||
const extensions::SizeConstraints& size_constraints) {
|
const extensions::SizeConstraints& size_constraints) {
|
||||||
NativeWindow::SetContentSizeConstraints(size_constraints);
|
NativeWindow::SetContentSizeConstraints(size_constraints);
|
||||||
|
window_->OnSizeConstraintsChanged();
|
||||||
#if defined(USE_X11)
|
#if defined(USE_X11)
|
||||||
if (resizable_)
|
if (resizable_)
|
||||||
old_size_constraints_ = size_constraints;
|
old_size_constraints_ = size_constraints;
|
||||||
|
|
Loading…
Reference in a new issue