Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(770)

Unified Diff: chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc

Issue 2918653002: Prevent gap when gesture-dragging in stacked tab mode (Closed)
Patch Set: added tests Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/stacked_tab_strip_layout_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc
diff --git a/chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc b/chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc
index 71b6a5250122a6d2a977f1a6c9d483bbbe8d28bc..d5224043f24beacef15ce776e302eb27724f4100 100644
--- a/chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc
+++ b/chrome/browser/ui/views/tabs/stacked_tab_strip_layout.cc
@@ -87,7 +87,7 @@ void StackedTabStripLayout::DragActiveTab(int delta) {
AdjustStackedTabs();
} else if (delta < 0 && initial_x == GetMaxX(active_index())) {
LayoutByTabOffsetBefore(active_index());
- ResetToIdealState();
+ AdjustStackedTabs();
}
int x = delta > 0 ?
std::min(initial_x + delta, GetMaxDragX(active_index())) :
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/stacked_tab_strip_layout_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698