diff options
-rw-r--r-- | views/window/window_win.cc | 8 | ||||
-rw-r--r-- | views/window/window_win.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/views/window/window_win.cc b/views/window/window_win.cc index 6689a5b..e1a10af 100644 --- a/views/window/window_win.cc +++ b/views/window/window_win.cc @@ -1283,17 +1283,17 @@ void WindowWin::SetInitialBounds(const gfx::Rect& create_bounds) { gfx::Rect saved_bounds(create_bounds.ToRECT()); if (window_delegate_->GetSavedWindowBounds(&saved_bounds)) { // Make sure the bounds are at least the minimum size. - if (saved_bounds.width() < minimum_size_.cx) { + if (saved_bounds.width() < minimum_size_.width()) { saved_bounds.SetRect(saved_bounds.x(), saved_bounds.y(), - saved_bounds.right() + minimum_size_.cx - + saved_bounds.right() + minimum_size_.width() - saved_bounds.width(), saved_bounds.bottom()); } - if (saved_bounds.height() < minimum_size_.cy) { + if (saved_bounds.height() < minimum_size_.height()) { saved_bounds.SetRect(saved_bounds.x(), saved_bounds.y(), saved_bounds.right(), - saved_bounds.bottom() + minimum_size_.cy - + saved_bounds.bottom() + minimum_size_.height() - saved_bounds.height()); } diff --git a/views/window/window_win.h b/views/window/window_win.h index e9625c2..12e3d2e 100644 --- a/views/window/window_win.h +++ b/views/window/window_win.h @@ -238,7 +238,7 @@ class WindowWin : public WidgetWin, HWND owning_hwnd_; // The smallest size the window can be. - CSize minimum_size_; + gfx::Size minimum_size_; // Whether or not the window is modal. This comes from the delegate and is // cached at Init time to avoid calling back to the delegate from the |