diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-29 04:32:30 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-29 04:32:30 +0000 |
commit | 9fba98e3fe4e8c45615befd358bddd308adfa58e (patch) | |
tree | b42424f6ea27d2d820845500d5a41cf0abca0a16 /chrome/browser/autofill | |
parent | 718d232dfd9344414e736fbd13497ad3305ac0c4 (diff) | |
download | chromium_src-9fba98e3fe4e8c45615befd358bddd308adfa58e.zip chromium_src-9fba98e3fe4e8c45615befd358bddd308adfa58e.tar.gz chromium_src-9fba98e3fe4e8c45615befd358bddd308adfa58e.tar.bz2 |
Fixes scrolling bug in autofill profiles. The problem was during
layout you can't set the origin to a location or 0x0, otherwise you
blow away the scroll.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/552225
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37498 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill')
-rw-r--r-- | chrome/browser/autofill/autofill_profiles_view_win.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/autofill/autofill_profiles_view_win.cc b/chrome/browser/autofill/autofill_profiles_view_win.cc index 238368b..96a7bce 100644 --- a/chrome/browser/autofill/autofill_profiles_view_win.cc +++ b/chrome/browser/autofill/autofill_profiles_view_win.cc @@ -688,7 +688,7 @@ void AutoFillProfilesView::ScrollViewContents::Layout() { if (parent && parent->width()) { const int width = parent->width(); const int height = GetHeightForWidth(width); - SetBounds(0, 0, width, height); + SetBounds(x(), y(), width, height); } else { gfx::Size prefsize = GetPreferredSize(); SetBounds(0, 0, prefsize.width(), prefsize.height()); |