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

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

Issue 7646003: Support auto-hide taskbar for panels on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months 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_browser_view.cc
===================================================================
--- chrome/browser/ui/panels/panel_browser_view.cc (revision 98834)
+++ chrome/browser/ui/panels/panel_browser_view.cc (working copy)
@@ -84,7 +84,7 @@
void PanelBrowserView::SetBounds(const gfx::Rect& bounds) {
bounds_ = bounds;
- //// No animation if the panel is being dragged.
+ // No animation if the panel is being dragged.
if (mouse_dragging_) {
::BrowserView::SetBounds(bounds);
return;
@@ -207,8 +207,10 @@
break;
}
+ int bottom = panel_->manager()->GetBottomPositionForExpansionState(
+ expansion_state);
gfx::Rect bounds = bounds_;
- bounds.set_y(bounds.y() + bounds.height() - height);
+ bounds.set_y(bottom - height);
bounds.set_height(height);
SetBounds(bounds);
}
« no previous file with comments | « chrome/browser/ui/panels/base_panel_browser_test.cc ('k') | chrome/browser/ui/panels/panel_browser_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698