Skip to content
This repository has been archived by the owner on Oct 2, 2018. It is now read-only.

Commit

Permalink
Merge pull request #241 from twiss/editor-width
Browse files Browse the repository at this point in the history
Add editor max-width
  • Loading branch information
ferndot committed Dec 12, 2014
2 parents ef87c33 + 6dc417b commit 51676c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/editor/scripts/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var mainClosure = function() {
}
if(e.data.command === "init" && e.ports.length) {
// Initialize Designer
document.documentElement.setAttribute('style','height: 100%; padding: 0; margin: 0;');
document.documentElement.setAttribute('style','height: 100%; padding: 0; margin: 0 auto; max-width: 690px; position: relative;');
document.body.setAttribute('style','height: 100%; padding: 0; margin: 0;');
doc = document.createElement('DIV');
doc.setAttribute('contentEditable', 'true');
Expand Down

1 comment on commit 51676c4

@ferndot
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Helps with #239

Please sign in to comment.