Fixed window resizing by positioning all elements correctly
This commit is contained in:
+2
-1
@@ -17,9 +17,10 @@
|
||||
|
||||
var imageUrl = '//images.photowall.com/products/' + $input.image_id.val() + '.jpg?h=450';
|
||||
|
||||
var editor = new ImageEditor('canvas-editor', {'type': 'canvas'})
|
||||
var editor = new ImageEditor('canvas-editor', {'type': 'wallpaper'})
|
||||
.loadImage(imageUrl, function() {
|
||||
$input.w.trigger('input');
|
||||
Event.handleResize();
|
||||
});
|
||||
|
||||
function getOptimalDimension(currentDimension, ratio) {
|
||||
|
||||
Reference in New Issue
Block a user