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

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

Issue 2509243002: Revert of 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') | no next file with comments »
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 ac52b290bb383fe9e47c82a0ad651e110a987da1..31e11922cc238dee17a3480a24f2c810818c8e82 100644
--- a/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc
+++ b/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc
@@ -330,7 +330,7 @@
}
}
- scroll_content()->InvalidateLayout();
+ scroll_content()->SizeToPreferredSize();
}
void AppendSameTypeDevicesToScrollList(const BluetoothDeviceList& list,
« no previous file with comments | « no previous file | ash/common/system/tray/fixed_sized_scroll_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698