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

Unified Diff: ash/common/system/chromeos/bluetooth/tray_bluetooth.cc

Issue 2509783002: Don't reset scroll position of contents on every ScrollView layout. (Closed)
Patch Set: Created 4 years, 1 month 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 | ash/common/system/tray/fixed_sized_scroll_view.cc » ('j') | ui/views/controls/scroll_view.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/bluetooth/tray_bluetooth.cc
diff --git a/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc b/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc
index cad0164890027e79e824974b062d4d0751548b7d..c3e4f251f57b114045588c4a1aaf535f9d4b7cef 100644
--- a/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc
+++ b/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc
@@ -329,7 +329,7 @@ class BluetoothDetailedView : public TrayDetailsView {
}
}
- scroll_content()->SizeToPreferredSize();
+ scroll_content()->InvalidateLayout();
}
void AppendSameTypeDevicesToScrollList(const BluetoothDeviceList& list,
« no previous file with comments | « no previous file | ash/common/system/tray/fixed_sized_scroll_view.cc » ('j') | ui/views/controls/scroll_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698