Commit 99191dda authored by sangseok.jang's avatar sangseok.jang Committed by Commit Bot

Set ink_drop's state in ToolbarButton::OnMenuClosed()

If drop_down_menu is shown at least twice(e.g repeating right-click),
Inkdrop's state is still although hover drop_down_menu is closed.

Bug: https://www.crbug.com/907358

Change-Id: Ie6ff9f4cfd09711a9b9af95cc0645e3c24778bd5
Reviewed-on: https://chromium-review.googlesource.com/c/1345694Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610075}
parent 90928aa9
......@@ -303,8 +303,10 @@ void ToolbarButton::OnMenuClosed() {
menu_showing_ = false;
// Set the state back to normal after the drop down menu is closed.
if (state() != STATE_DISABLED)
if (state() != STATE_DISABLED) {
GetInkDrop()->SetHovered(IsMouseHovered());
SetState(STATE_NORMAL);
}
menu_runner_.reset();
menu_model_adapter_.reset();
......
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