summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/tabs/tab_strip.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-15 19:54:56 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-15 19:54:56 +0000
commitd82443b8abc227bd9aa383bfc62702cf36c97476 (patch)
tree2aa9125983c41369ed92ef78837919853145ca2e /chrome/browser/views/tabs/tab_strip.cc
parent0063a45b4515ead768e917a4f62f8fe96574a02d (diff)
downloadchromium_src-d82443b8abc227bd9aa383bfc62702cf36c97476.zip
chromium_src-d82443b8abc227bd9aa383bfc62702cf36c97476.tar.gz
chromium_src-d82443b8abc227bd9aa383bfc62702cf36c97476.tar.bz2
Fie.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8111 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tabs/tab_strip.cc')
-rw-r--r--chrome/browser/views/tabs/tab_strip.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/chrome/browser/views/tabs/tab_strip.cc b/chrome/browser/views/tabs/tab_strip.cc
index 7791289..3232ec4 100644
--- a/chrome/browser/views/tabs/tab_strip.cc
+++ b/chrome/browser/views/tabs/tab_strip.cc
@@ -1470,17 +1470,8 @@ void TabStrip::StartResizeLayoutAnimation() {
}
void TabStrip::StartInsertTabAnimation(int index) {
- // Don't shock users by letting all tabs move when they are focused
- // on the tab-strip. Wait for later, when they aren't looking.
- int last_tab_index = GetTabCount() - 2;
- if (last_tab_index > 0) {
- Tab* last_tab = GetTabAt(last_tab_index);
- available_width_for_tabs_ = std::min(
- GetAvailableWidthForTabs(last_tab) + last_tab->width(),
- width() - (kNewTabButtonHOffset + newtab_button_size_.width()));
- } else {
- available_width_for_tabs_ = -1;
- }
+ // The TabStrip can now use its entire width to lay out Tabs.
+ available_width_for_tabs_ = -1;
if (active_animation_.get())
active_animation_->Stop();
active_animation_.reset(new InsertTabAnimation(this, index));