Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Unified Diff: chrome/browser/ui/panels/panel_manager.cc

Issue 9517010: Change panels to be able to turn off autoresize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/panels/panel_manager.cc
diff --git a/chrome/browser/ui/panels/panel_manager.cc b/chrome/browser/ui/panels/panel_manager.cc
index b86f15e36d8092df68eebd978370104bab3640db..b9c54f49df4de3658dfc295113370835e13eba47 100644
--- a/chrome/browser/ui/panels/panel_manager.cc
+++ b/chrome/browser/ui/panels/panel_manager.cc
@@ -182,11 +182,8 @@ void PanelManager::OnPreferredWindowSizeChanged(
}
void PanelManager::ResizePanel(Panel* panel, const gfx::Size& new_size) {
- // Explicit resizing is not allowed for auto-resizable panels for now.
- // http://crbug.com/109343
- if (panel->auto_resizable())
- return;
-
+ // Resizing a panel will make it not auto-resizable.
+ panel->SetAutoResizable(false);
jennb 2012/02/28 23:45:15 When this calls DisableAutoResize, it passes the r
levin 2012/02/29 00:04:43 I moved this to be inside of ResizePanelWindow. I
docked_strip_->ResizePanelWindow(panel, new_size);
}

Powered by Google App Engine
This is Rietveld 408576698