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; |