Commit bf00bb38 authored by estade@chromium.org's avatar estade@chromium.org

rAc: take footnote view into account when calculating dialog height.

BUG=284835

Review URL: https://chromiumcodereview.appspot.com/23653015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221534 0039d316-1c4b-4281-b951-d872f2087c98
parent 8e17c1ca
...@@ -1800,6 +1800,9 @@ gfx::Size AutofillDialogViews::CalculatePreferredSize() { ...@@ -1800,6 +1800,9 @@ gfx::Size AutofillDialogViews::CalculatePreferredSize() {
const int kWindowDecorationHeight = 200; const int kWindowDecorationHeight = 200;
int browser_constrained_height = int browser_constrained_height =
browser_window_height - height - kWindowDecorationHeight; browser_window_height - height - kWindowDecorationHeight;
if (footnote_view_->visible())
browser_constrained_height -= footnote_view_->GetHeightForWidth(width);
int scroll_height = std::min( int scroll_height = std::min(
scroll_size.height(), scroll_size.height(),
std::max(kMinimumContentsHeight, browser_constrained_height)); std::max(kMinimumContentsHeight, browser_constrained_height));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment