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

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

Issue 8621002: Reduce minimum size of Panels to allow 1-text-line tight autosize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simplify test Created 9 years, 1 month 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 f9afd8c6df36e38022ba2655d6ec0cd278b8e1f8..8253d3a5b38bb48addf4769b2c414b27c10e8cdb 100644
--- a/chrome/browser/ui/panels/panel_manager.cc
+++ b/chrome/browser/ui/panels/panel_manager.cc
@@ -26,10 +26,16 @@ const size_t kInvalidPanelIndex = static_cast<size_t>(-1);
// elements located on the bottom right of windows.
const int kRightScreenEdgeSpacingWidth = 24;
-// Default width and height of a panel.
+// Default width and height of a panel, including non-client area.
const int kPanelDefaultWidth = 240;
const int kPanelDefaultHeight = 290;
+// Absolute minimum width and height for panels, including non-client area.
+// Should only be big enough to accomodate a close button on the reasonably
+// recognisable titlebar.
+const int kPanelMinWidth = 100;
+const int kPanelMinHeight = 20;
+
// Maxmium width and height of a panel based on the factor of the working
// area.
const double kPanelMaxWidthFactor = 0.35;
« chrome/browser/ui/panels/panel_browsertest.cc ('K') | « chrome/browser/ui/panels/panel_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698