pixel tweaks so the left scrollbar is selectable and the viewport takes the whole page

This commit is contained in:
simonzack
2015-01-26 02:47:11 +11:00
parent 5c30ff4d3e
commit 915f63cac4
@@ -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;';