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

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

Issue 8802021: Fix a couple panel overflow related bugs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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_strip.cc
diff --git a/chrome/browser/ui/panels/panel_strip.cc b/chrome/browser/ui/panels/panel_strip.cc
index 499516f0bddaffbf3ed5547033633dfdb9788bfb..5d4789c761b5e248d33b8f9055ba656528aacbdb 100644
--- a/chrome/browser/ui/panels/panel_strip.cc
+++ b/chrome/browser/ui/panels/panel_strip.cc
@@ -99,6 +99,7 @@ void PanelStrip::AddPanel(Panel* panel) {
DCHECK(!panels_.empty());
MovePanelToOverflow(panels_.back(), false);
}
+ panel->SetExpansionState(Panel::EXPANDED);
jennb 2011/12/05 21:20:10 Move this after line 104. Seems better than puttin
int y = display_area_.bottom() - height;
panel->SetPanelBounds(gfx::Rect(x, y, width, height));
} else {

Powered by Google App Engine
This is Rietveld 408576698