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

Unified Diff: ui/file_manager/gallery/js/image_editor/viewport.js

Issue 402863002: Specify canvas size by using CSS width/height. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/file_manager/gallery/js/image_editor/image_view.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/gallery/js/image_editor/viewport.js
diff --git a/ui/file_manager/gallery/js/image_editor/viewport.js b/ui/file_manager/gallery/js/image_editor/viewport.js
index 56f7aa2d7edd78207251c247287b94e8545b83ea..4ecea71c0588de34d26a1f840d257068b37b9fc2 100644
--- a/ui/file_manager/gallery/js/image_editor/viewport.js
+++ b/ui/file_manager/gallery/js/image_editor/viewport.js
@@ -437,7 +437,7 @@ Viewport.prototype.update_ = function() {
*/
Viewport.prototype.getTransformation = function() {
return 'translate(' + this.offsetX_ + 'px, ' + this.offsetY_ + 'px) ' +
- 'scale(' + (1 / window.devicePixelRatio * this.zoom_) + ')';
+ 'scale(' + this.zoom_ + ')';
};
/**
« no previous file with comments | « ui/file_manager/gallery/js/image_editor/image_view.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698