Fixed responsivity when resizing the window

This commit is contained in:
Erik Tiekstra
2017-05-30 09:27:53 +02:00
parent 86f9412335
commit c57d9157aa
8 changed files with 69 additions and 29 deletions
+3 -1
View File
@@ -17,7 +17,9 @@
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: 'canvas',
})
.loadImage(imageUrl, function() {
$input.w.trigger('input');
Event.handleResize();