Skip to content

Commit

Permalink
Merge pull request #133 from mateomustapic/LPS-120758
Browse files Browse the repository at this point in the history
fix: modify calculation for dialog defaultWidth which caused visual bug
  • Loading branch information
julien authored Sep 18, 2020
2 parents d92ce98 + cb2190f commit e281cbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/codemirror/dialogs/codemirrordialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ CKEDITOR.dialog.add('codemirrordialog', function (editor) {
}
));

var defaultWidth = size.width * 0.5 - 10;
var padding = 40;

var defaultWidth = size.width / 2 - padding;

codeMirrorEditor.setSize(defaultWidth, null);

Expand Down

0 comments on commit e281cbc

Please sign in to comment.