mirror of
https://github.com/electron/electron.git
synced 2026-01-25 23:38:18 -05:00
views: Make size constraints work immediately after set
This commit is contained in:
@@ -390,6 +390,7 @@ gfx::Size NativeWindowViews::GetContentSize() {
|
||||
void NativeWindowViews::SetContentSizeConstraints(
|
||||
const extensions::SizeConstraints& size_constraints) {
|
||||
NativeWindow::SetContentSizeConstraints(size_constraints);
|
||||
window_->OnSizeConstraintsChanged();
|
||||
#if defined(USE_X11)
|
||||
if (resizable_)
|
||||
old_size_constraints_ = size_constraints;
|
||||
|
||||
Reference in New Issue
Block a user