diff options
author | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-30 19:49:43 +0000 |
---|---|---|
committer | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-30 19:49:43 +0000 |
commit | a66fcdf46f47674bac5f803b2903c19d0049731f (patch) | |
tree | 67ebe03dc61f50377c21ac71c3ac4a0d68fd5fcd | |
parent | 3822729b80379879b868942aabd8ad741a5c4961 (diff) | |
download | chromium_src-a66fcdf46f47674bac5f803b2903c19d0049731f.zip chromium_src-a66fcdf46f47674bac5f803b2903c19d0049731f.tar.gz chromium_src-a66fcdf46f47674bac5f803b2903c19d0049731f.tar.bz2 |
Allow wider panels on ChromeOS
Limiting the width of panels is affecting the behavior of some existing panels on ChromeOS device sized screens.
BUG=111121
TEST=See issue
Review URL: http://codereview.chromium.org/9288048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119712 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/ui/panels/docked_panel_strip.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/ui/panels/docked_panel_strip.cc b/chrome/browser/ui/panels/docked_panel_strip.cc index e7f282a..c59682d 100644 --- a/chrome/browser/ui/panels/docked_panel_strip.cc +++ b/chrome/browser/ui/panels/docked_panel_strip.cc @@ -26,7 +26,13 @@ const size_t kInvalidPanelIndex = static_cast<size_t>(-1); const double kPanelDefaultWidthToHeightRatio = 1.62; // golden ratio // Maxmium width of a panel is based on a factor of the entire panel strip. +#if defined(OS_CHROMEOS) +// ChromeOS device screens are relatively small and limiting the width +// interferes with some apps (e.g. http://crbug.com/111121). +const double kPanelMaxWidthFactor = 0.80; +#else const double kPanelMaxWidthFactor = 0.35; +#endif // New panels that cannot fit in the panel strip are moved to overflow // after a brief delay. |