diff options
author | groby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-08 06:38:49 +0000 |
---|---|---|
committer | groby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-08 06:38:49 +0000 |
commit | 81ebff3b727b9e86317a235d4b97f9c718471fc0 (patch) | |
tree | a65220e142fe7ccd472c9ec0a4d6bda226db3ff8 | |
parent | 1fbb65a391397e0e8f5cfe286d1864b260ea606c (diff) | |
download | chromium_src-81ebff3b727b9e86317a235d4b97f9c718471fc0.zip chromium_src-81ebff3b727b9e86317a235d4b97f9c718471fc0.tar.gz chromium_src-81ebff3b727b9e86317a235d4b97f9c718471fc0.tar.bz2 |
[rAC, OSX] Ensure proper sizing on browser resize.
Makes sure that -requestRelayout will result in -performLayout on the
next pass through the event loop, even if none of the views have been
marked as needing display.
This is necessary for resize based on browser window resizes - these
online invoke -requestRelayout, but don't modify the frame yet, to keep
window and view sizes in sync.
BUG=325518
R=thakis@chromium.org
Review URL: https://codereview.chromium.org/100823003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239374 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.mm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.mm b/chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.mm index e4b9656..fea519f 100644 --- a/chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.mm +++ b/chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.mm @@ -52,6 +52,9 @@ const CGFloat kMinimumContentsHeight = 101; - (void)requestRelayout { needsLayout_ = YES; + + // Ensure displayIfNeeded: is sent on the next pass through the event loop. + [self setViewsNeedDisplay:YES]; } - (void)performLayout { |