Commit 61797c02 authored by Megumi Hattori's avatar Megumi Hattori Committed by Commit Bot

Fix stating point for drawing inline settings animation.

When a gear icon for the inline settings is clicked, the animation
should be drwan from the point where the mouse is cliked. However, if
notifications are shown on MessageCenterView, the animation is not
drawn from the correct point. This CL Fixes the stating point for
drawing animation.

BUG=813465

Change-Id: Ic903b86abfd31f0da80b931f5f68234c47c7ac33
Reviewed-on: https://chromium-review.googlesource.com/923689Reviewed-by: default avatarTetsui Ohkubo <tetsui@chromium.org>
Reviewed-by: default avatarYoshiki Iguchi <yoshiki@chromium.org>
Commit-Queue: Megumi Hattori <megumihattori@google.com>
Cr-Commit-Position: refs/heads/master@{#537704}
parent ad6f4e88
......@@ -1355,7 +1355,7 @@ void NotificationViewMD::AddBackgroundAnimation(const ui::LocatedEvent& event) {
views::View* target = static_cast<views::View*>(event.target());
const gfx::Point& location = event.location();
gfx::Point converted_location(location);
View::ConvertPointToWidget(target, &converted_location);
View::ConvertPointToTarget(target, this, &converted_location);
std::unique_ptr<ui::Event> cloned_event = ui::Event::Clone(event);
ui::LocatedEvent* cloned_located_event = cloned_event->AsLocatedEvent();
cloned_located_event->set_location(converted_location);
......
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