diff --git a/dist/image-editor.js b/dist/image-editor.js index f6938d7..3233996 100644 --- a/dist/image-editor.js +++ b/dist/image-editor.js @@ -1205,11 +1205,17 @@ function ImageEditor(canvasId, args) { hideRulers: 'Hide Ruler', showFullscreen: 'Fullscreen', exitFullscreen: 'Exit Fullscreen', + }, + // Default dimensions + dimensions: { + width: 800, + height: 600 } }, args); + // Initialize canvas - _canvas = new Canvas(canvasId, args.dimensions); + _canvas = new Canvas(canvasId, _settings.dimensions); // Let Canvas know which type it is, canvas or wallpaper since it is // accessible for all objects contained within. diff --git a/examples/photo-wallpaper/index.html b/examples/photo-wallpaper/index.html index 9539d62..9894685 100644 --- a/examples/photo-wallpaper/index.html +++ b/examples/photo-wallpaper/index.html @@ -11,11 +11,9 @@