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

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 23653015: rAc: take footnote view into account when calculating dialog height. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/autofill/autofill_dialog_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
index d216e8f8932a2536f532d317d80ca6cf060e7b31..2e13a5f6a906fcd093046e0ba146c177694c16ec 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -1800,6 +1800,9 @@ gfx::Size AutofillDialogViews::CalculatePreferredSize() {
const int kWindowDecorationHeight = 200;
int browser_constrained_height =
browser_window_height - height - kWindowDecorationHeight;
+ if (footnote_view_->visible())
+ browser_constrained_height -= footnote_view_->GetHeightForWidth(width);
+
int scroll_height = std::min(
scroll_size.height(),
std::max(kMinimumContentsHeight, browser_constrained_height));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698