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

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

Issue 8602007: Panels: Disable auto-resize if initial size is specified during creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use golden ratio 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
« no previous file with comments | « chrome/browser/ui/panels/panel.cc ('k') | chrome/browser/ui/panels/panel_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_browser_window_gtk.cc
diff --git a/chrome/browser/ui/panels/panel_browser_window_gtk.cc b/chrome/browser/ui/panels/panel_browser_window_gtk.cc
index c9342e02c86ccdf031a714d97855f9a16d7598d2..0f85c21f9e8a009307fcfdeb0b3463751cbb6f4b 100644
--- a/chrome/browser/ui/panels/panel_browser_window_gtk.cc
+++ b/chrome/browser/ui/panels/panel_browser_window_gtk.cc
@@ -142,12 +142,11 @@ void PanelBrowserWindowGtk::OnSizeChanged(int width, int height) {
return;
window_size_known_ = true;
- int bottom = panel_->manager()->GetBottomPositionForExpansionState(
- panel_->expansion_state());
- int top = bottom - height;
+ int top = bounds_.bottom() - height;
+ int left = bounds_.right() - width;
- gtk_window_move(window_, bounds_.x(), top);
- StartBoundsAnimation(gfx::Rect(bounds_.x(), top, width, height));
+ gtk_window_move(window_, left, top);
+ StartBoundsAnimation(gfx::Rect(left, top, width, height));
panel_->OnWindowSizeAvailable();
content::NotificationService::current()->Notify(
« no previous file with comments | « chrome/browser/ui/panels/panel.cc ('k') | chrome/browser/ui/panels/panel_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698