Fix the position of drag thumbnail when the scale settings is not 100%.
The thumbnail of an image file is a squared image. This is implemented as an image in a square container. The non square image is cropped by the square container, but the hidden part of the image causes unwated position gap of the dragging thumbnail. Previously we handle the gap by adding 1000px padding for the thumbnail. But the padding causes another bug when the browser is shown in non 100% scale. This CL stops to add 1000px padding. Instead, to handle the unwanted gap, the CL let Files.app copy the image to a square canvas. For the solution, we don't need to crop an image by a square canvas because the canvas itself is square, and thus we are free from position gap problem. BUG=339179 TEST=manually R=mtomasz@chromium.org Review URL: https://codereview.chromium.org/338253003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277993 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment