Commit c34422a2 authored by Manu Cornet's avatar Manu Cornet Committed by Commit Bot

CrOS Shelf: Add an 'UpdateLayout' call that was left out previously

The idea behind some of the recent refactorings is to split the logic
for calculating target bounds and upating the layout to each shelf
component instead of doing everything in the shelf layout manager.

Previously, some (limited, soon more) work was delegated to the
shelf widget's |UpdateLayout| method, but calling that method from
the "central" place in the shelf layout manager was omitted. This change
reinstates that call.

Bug: 1051824, 1050383c
Change-Id: Ibcf3bfd26210278ec464f186ae6a0a958f03d644
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2055392
Commit-Queue: Manu Cornet <manucornet@chromium.org>
Auto-Submit: Manu Cornet <manucornet@chromium.org>
Reviewed-by: default avatarAlex Newcomer <newcomer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#741176}
parent 554a259c
...@@ -1507,6 +1507,7 @@ void ShelfLayoutManager::UpdateBoundsAndOpacity(bool animate) { ...@@ -1507,6 +1507,7 @@ void ShelfLayoutManager::UpdateBoundsAndOpacity(bool animate) {
gfx::Tween::EASE_OUT); gfx::Tween::EASE_OUT);
shelf_widget_->GetLayer()->SetTransform(gfx::Transform()); shelf_widget_->GetLayer()->SetTransform(gfx::Transform());
shelf_->shelf_widget()->UpdateLayout(animate);
hotseat_widget->UpdateLayout(animate); hotseat_widget->UpdateLayout(animate);
// Having a window which is visible but does not have an opacity is an // Having a window which is visible but does not have an opacity is an
......
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