Index: chrome/browser/ui/views/tabs/touch_tab_strip_layout.cc |
diff --git a/chrome/browser/ui/views/tabs/touch_tab_strip_layout.cc b/chrome/browser/ui/views/tabs/touch_tab_strip_layout.cc |
index c96c37faa0085c26d4e011230378bd7f84216590..1b5d7cd2d4e483937c25a54c0fc9d69f276054ea 100644 |
--- a/chrome/browser/ui/views/tabs/touch_tab_strip_layout.cc |
+++ b/chrome/browser/ui/views/tabs/touch_tab_strip_layout.cc |
@@ -312,7 +312,8 @@ void TouchTabStripLayout::AdjustTrailingStackedTabs() { |
ideal_x(index - 1) >= max_stacked_x) { |
index--; |
} |
- if (ideal_x(index) - ideal_x(index - 1) <= stacked_padding_ && |
+ if (index > active_index() && |
+ ideal_x(index) - ideal_x(index - 1) <= stacked_padding_ && |
ideal_x(index - 1) >= max_stacked_x) { |
index--; |
} |