Merge pull request #953 from simonzack/master

Resolves #952.
This commit is contained in:
Dawa Ometto
2015-01-25 18:45:17 +01:00
@@ -453,18 +453,16 @@ var applyTimeout = function () {
var height = $( win ).height();
var heightHalf = height / 2;
// height minus 50 so the end of document text doesn't flow off the page.
// + 15 for scroll bar
var editorContainerStyle = 'width:' + (widthHalf + 15) + 'px;' +
'height:' + (height - 50) + 'px;' +
// height minus 40 so the end of document text doesn't flow off the page.
var editorContainerStyle = 'width:' + widthHalf + 'px;' +
'height:' + (height - 40) + 'px;' +
'left:' + (leftRight === false ? widthHalf + 'px;' : '0px;') +
'top:' + '40px;'; // use 40px for tool menu
cssSet( editorContainer, editorContainerStyle );
editor.resize();
// width -2 for scroll bar & -10 for left offset
var previewStyle = 'width:' + (widthHalf - 2 - 10) + 'px;' +
'height:' + (height -50) + 'px;' +
var previewStyle = 'width:' + widthHalf + 'px;' +
'height:' + (height - 40) + 'px;' +
'left:' + (leftRight === false ? '10px;' : widthHalf + 'px;') +
// preview panel top is equal to height of comment tool panel (40px) + 1
'top:41px;';