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

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

Issue 398263002: Gallery: Random fixes for the Viewport class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: ui/file_manager/gallery/js/image_editor/image_editor.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_editor.js b/ui/file_manager/gallery/js/image_editor/image_editor.js
index c5fbecd70577c6310e410644a9ba393db35a9f3f..b16c9ff193abfc63d5cc336a9304c637bf94e4d9 100644
--- a/ui/file_manager/gallery/js/image_editor/image_editor.js
+++ b/ui/file_manager/gallery/js/image_editor/image_editor.js
@@ -30,7 +30,8 @@ function ImageEditor(
ImageUtil.removeChildren(this.container_);
this.viewport_ = viewport;
- this.viewport_.sizeByFrame(this.container_);
+ this.viewport_.setScreenSize(
+ this.container_.clientWidth, this.container_.clientHeight);
this.imageView_ = imageView;
this.imageView_.addContentCallback(this.onContentUpdate_.bind(this));

Powered by Google App Engine
This is Rietveld 408576698