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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 12871013: DevTools: respect minimum width/height when resizing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 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/views/frame/browser_view.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_view.cc (revision 187863)
+++ chrome/browser/ui/views/frame/browser_view.cc (working copy)
@@ -2229,6 +2229,11 @@
new views::ExternalFocusTracker(devtools_container_,
GetFocusManager()));
}
+
+ gfx::Size minDevtoolsSize(devtools_window_->GetMinimumWidth(),
pfeldman 2013/03/19 10:42:06 min_devtools_size
dgozman 2013/03/21 09:55:26 Done.
+ devtools_window_->GetMinimumHeight());
+ devtools_container_->SetPreferredSize(minDevtoolsSize);
sky 2013/03/19 14:40:50 This changes the preferred size, are you sure you
dgozman 2013/03/21 09:55:26 I did not found another way to set minimum size fo
+
devtools_container_->SetVisible(true);
devtools_dock_side_ = devtools_window_->dock_side();
bool dock_to_right = devtools_dock_side_ == DEVTOOLS_DOCK_SIDE_RIGHT;

Powered by Google App Engine
This is Rietveld 408576698