summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents.cc
diff options
context:
space:
mode:
authorglen@google.com <glen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-08 22:24:51 +0000
committerglen@google.com <glen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-08 22:24:51 +0000
commitce2390b6840fc1f57a7007e44f8136b57b801eab (patch)
tree9ed8ca10bdf1c4b8dbd1e3e2425787c6ed3d9b31 /chrome/browser/tab_contents.cc
parent568d3f5d7b4d5aecc0ab0dc2f858a8c78b082e6a (diff)
downloadchromium_src-ce2390b6840fc1f57a7007e44f8136b57b801eab.zip
chromium_src-ce2390b6840fc1f57a7007e44f8136b57b801eab.tar.gz
chromium_src-ce2390b6840fc1f57a7007e44f8136b57b801eab.tar.bz2
Fix for bug where we weren't resizing the content area at the end of a download shelf animation. This was caused by a disconnect between tabcontents::shelf_visible_ and the finished state.
BUG=1317014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@601 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents.cc')
-rw-r--r--chrome/browser/tab_contents.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/tab_contents.cc b/chrome/browser/tab_contents.cc
index 24bae60..43c4b15 100644
--- a/chrome/browser/tab_contents.cc
+++ b/chrome/browser/tab_contents.cc
@@ -523,12 +523,12 @@ void TabContents::SetDownloadShelfVisible(bool visible) {
if (delegate_)
delegate_->ContentsStateChanged(this);
-
- // SetShelfVisible can force-close the shelf, so make sure we lay out
- // everything correctly, as if the animation had finished. This doesn't
- // matter for showing the shelf, as the show animation will do it.
- ToolbarSizeChanged(visible);
}
+
+ // SetShelfVisible can force-close the shelf, so make sure we lay out
+ // everything correctly, as if the animation had finished. This doesn't
+ // matter for showing the shelf, as the show animation will do it.
+ ToolbarSizeChanged(false);
}
void TabContents::ReleaseDownloadShelfView() {