Commit ad5097b9 authored by Tim Song's avatar Tim Song Committed by Commit Bot

Ash Tray: Update message center position after display config changes.

Currently, only the quick settings bubble is updating its bounds when the
display configuration changes (e.g. screen rotation). We also need to update the
bounds of the message center as well.

TEST=manually on tablet device
BUG=1019506

Change-Id: I12e9d8f0ec92c5105f835b83a345e73f950baab8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1894319Reviewed-by: default avatarAhmed Mehfooz <amehfooz@chromium.org>
Commit-Queue: Ahmed Mehfooz <amehfooz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712190}
parent ef8284d0
......@@ -362,6 +362,9 @@ void UnifiedSystemTrayBubble::UpdateBubbleBounds() {
bubble_view_->SetMaxHeight(max_height);
bubble_view_->ChangeAnchorAlignment(tray_->shelf()->alignment());
bubble_view_->ChangeAnchorRect(tray_->shelf()->GetSystemTrayAnchorRect());
if (tray_->IsMessageCenterBubbleShown())
tray_->message_center_bubble()->UpdatePosition();
}
void UnifiedSystemTrayBubble::CreateBlurLayerForAnimation() {
......
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