Move bookmark's folder menu upwards only when its parent button is moved.
On dragging and dropping an item on a folder that is currently showing its folder menu; the menu moves upwards by an offset, regardless of its parent button moved or not. This CL fixes the issue that the folder menu is moved only when its parent button is moved. Also, the offset value should be kBookmarkFolderButtonHeight. BUG=311155 R=asvitkine@chromium.org TEST= 1) Launch chrome and add a bookmark folder(folder1) to Bookmarks Bar 2) Add two folders(folder2 and folder3) within folder1. 3) Open folder1, now drag folder3 and hover it on folder2, wait until folder2 opens its folder menu, now drop the folder i.e release the mouse, and observe. 4) folder2's folder menu should not shift upwards, it should horizontally align with its button's frame. Review URL: https://codereview.chromium.org/606593002 Cr-Commit-Position: refs/heads/master@{#299037}
Showing
Please register or sign in to comment