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)); |