Commit c5f9e587 authored by David Black's avatar David Black Committed by Chromium LUCI CQ

Reset holding space tray icon bounds when clearing.

Addresses the case where:
1. User has 3+ items in Tote
2. User batch removes all items via Files app
3. User adds back in item to Tote

Previously at step 3, the Tote tray icon bounds would jump to max size
on visibility change before animating back to min item bounds.

Change-Id: I8f15b584d0722b2601e69f63160befe83fc644d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2621974Reviewed-by: default avatarToni Baržić <tbarzic@chromium.org>
Commit-Queue: David Black <dmblack@google.com>
Cr-Commit-Position: refs/heads/master@{#842123}
parent aaebbea7
......@@ -119,6 +119,7 @@ void HoldingSpaceTrayIcon::Clear() {
previews_update_weak_factory_.InvalidateWeakPtrs();
previews_by_id_.clear();
removed_previews_.clear();
SetPreferredSize(CalculatePreferredSize());
}
int HoldingSpaceTrayIcon::GetHeightForWidth(int width) const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment