Fix weird movement when folder is created or distroyed
When the folder is created, the folder item view's origin is initiated with (0, 0). So after dragging the folder item view will be animated to where it is supposed to be, which cause the weird movement. The same thing happens when the last item is moved outside the folder. Changes: Use the original view's bounds to set the newly created view's bounds before the deletion of the original view. BUG=819664 Change-Id: Id0066b27a0bd30f04e5b62c6b782178fbf84d48c Reviewed-on: https://chromium-review.googlesource.com/953204Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Weidong Guo <weidongg@chromium.org> Cr-Commit-Position: refs/heads/master@{#541620}
Showing
Please register or sign in to comment