Commit e2867aed authored by yhanada's avatar yhanada Committed by Commit bot

Fix calculation of the bubble view height.

BUG=678558
TEST=Notification doesn't overlap with Uber Tray when ChromeVox is
     enabled.

Review-Url: https://codereview.chromium.org/2625663002
Cr-Commit-Position: refs/heads/master@{#442756}
parent 506bf292
...@@ -682,7 +682,7 @@ void SystemTray::UpdateWebNotifications() { ...@@ -682,7 +682,7 @@ void SystemTray::UpdateWebNotifications() {
->GetDisplayNearestWindow(bubble_view->GetWidget()->GetNativeView()) ->GetDisplayNearestWindow(bubble_view->GetWidget()->GetNativeView())
.work_area(); .work_area();
height = height =
std::max(0, work_area.height() - bubble_view->GetBoundsInScreen().y()); std::max(0, work_area.bottom() - bubble_view->GetBoundsInScreen().y());
} }
if (web_notification_tray_) if (web_notification_tray_)
web_notification_tray_->SetTrayBubbleHeight(height); web_notification_tray_->SetTrayBubbleHeight(height);
......
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