Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HTML editor resize bug #739

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix HTML editor resize bug
Fixes #738
Willard21 committed Sep 5, 2020
commit 9b7501f37471ecdd29784b1327da2d0b54cc5bf7
2 changes: 1 addition & 1 deletion build/js/live-editor.ui.js
Original file line number Diff line number Diff line change
@@ -2092,7 +2092,7 @@ window.LiveEditor = Backbone.View.extend({

updateCanvasSize: function updateCanvasSize(width, height) {
width = width || this.defaultOutputWidth;
height = height || this.defaultOutputHeight;
height = height || this.editorHeight || this.defaultOutputHeight;

this.$el.find(this.dom.CANVAS_WRAP).width(width);
this.$el.find(this.dom.ALL_OUTPUT).height(height);
2 changes: 1 addition & 1 deletion js/live-editor.js
Original file line number Diff line number Diff line change
@@ -1402,7 +1402,7 @@ window.LiveEditor = Backbone.View.extend({

updateCanvasSize: function(width, height) {
width = width || this.defaultOutputWidth;
height = height || this.defaultOutputHeight;
height = height || this.editorHeight || this.defaultOutputHeight;

this.$el.find(this.dom.CANVAS_WRAP).width(width);
this.$el.find(this.dom.ALL_OUTPUT).height(height);