DescriptionFix 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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277993
Patch Set 1 #
Total comments: 6
Patch Set 2 : Fixed. #Patch Set 3 : Stop to report an errors of non image files. #
Messages
Total messages: 14 (0 generated)
|