Remove unnecessary context menu flicker
Context menu 'New Folder' selection was causing the menu to jump
up and down (easier seen on captured video on the bug). This was
caused by a 'change' event fired that updated the state of the
context menu tasks-separator bar to visible despite there being
no items above it (which in turn, makes the menu taller temporarily).
That happened mid-animation of the menu and the bar is reset to
hidden after more event processing. Removing the fake data that
was passed into the updateContextMenuTaskItems_() method stops
it happening.
offending code to visually check fix works. Ran test on
desktop and real device to confirm.
Bug: 698176
Test: Ran all FilesApp browser tests. Single-stepped through the
Change-Id: Icd7a2c41ad85bf93e30fe90632d83a8890b294bf
Reviewed-on: https://chromium-review.googlesource.com/c/1347631Reviewed-by:
Luciano Pacheco <lucmult@chromium.org>
Commit-Queue: Alex Danilo <adanilo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#610283}
Showing
Please register or sign in to comment