Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Issue 338253003: Fix the position of drag thumbnail when the scale settings is not 100%. (Closed)

Created:
6 years, 6 months ago by hirono
Modified:
6 years, 6 months ago
Reviewers:
mtomasz
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yoshiki+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

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 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -41 lines) Patch
M ui/file_manager/file_manager/foreground/css/file_manager.css View 3 chunks +1 line, -14 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/file_transfer_controller.js View 1 2 7 chunks +71 lines, -27 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
hirono
PTAL the CL? Thank you!
6 years, 6 months ago (2014-06-17 04:28:59 UTC) #1
mtomasz
https://codereview.chromium.org/338253003/diff/1/ui/file_manager/file_manager/foreground/css/file_manager.css File ui/file_manager/file_manager/foreground/css/file_manager.css (right): https://codereview.chromium.org/338253003/diff/1/ui/file_manager/file_manager/foreground/css/file_manager.css#newcode1332 ui/file_manager/file_manager/foreground/css/file_manager.css:1332: line-height: 0; nit: What is the purpose of this ...
6 years, 6 months ago (2014-06-17 04:42:35 UTC) #2
hirono
Thanks! https://codereview.chromium.org/338253003/diff/1/ui/file_manager/file_manager/foreground/css/file_manager.css File ui/file_manager/file_manager/foreground/css/file_manager.css (right): https://codereview.chromium.org/338253003/diff/1/ui/file_manager/file_manager/foreground/css/file_manager.css#newcode1332 ui/file_manager/file_manager/foreground/css/file_manager.css:1332: line-height: 0; On 2014/06/17 04:42:34, mtomasz wrote: > ...
6 years, 6 months ago (2014-06-17 04:50:53 UTC) #3
mtomasz
lgtm!
6 years, 6 months ago (2014-06-17 04:52:51 UTC) #4
hirono
The CQ bit was checked by hirono@chromium.org
6 years, 6 months ago (2014-06-17 04:55:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/338253003/20001
6 years, 6 months ago (2014-06-17 04:56:17 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-17 11:12:53 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/38317)
6 years, 6 months ago (2014-06-17 11:12:54 UTC) #8
hirono
The CQ bit was checked by hirono@chromium.org
6 years, 6 months ago (2014-06-18 05:37:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/338253003/40001
6 years, 6 months ago (2014-06-18 05:39:25 UTC) #10
hirono
The CQ bit was unchecked by hirono@chromium.org
6 years, 6 months ago (2014-06-18 05:39:29 UTC) #11
hirono
The CQ bit was checked by hirono@chromium.org
6 years, 6 months ago (2014-06-18 05:40:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/338253003/40001
6 years, 6 months ago (2014-06-18 05:42:05 UTC) #13
hirono
6 years, 6 months ago (2014-06-18 08:44:58 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 manually as r277993 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698