diff --git a/code/boot.js b/code/boot.js index 81541a8a..c28bf795 100644 --- a/code/boot.js +++ b/code/boot.js @@ -33,8 +33,10 @@ window.setupStyles = function() { '#chatcontrols { bottom: '+(CHAT_SHRINKED+24)+'px; }', '#chat { height: '+CHAT_SHRINKED+'px; } ', '#updatestatus { width:'+(SIDEBAR_WIDTH-2*4)+'px; } ', - '#sidebar, #gamestat, #gamestat span, input, ', - '.imgpreview img { width:'+SIDEBAR_WIDTH+'px; }'].join("\n") + '#sidebar { width:'+(SIDEBAR_WIDTH + HIDDEN_SCROLLBAR_ASSUMED_WIDTH + 2 /*border*/)+'px; } ', + '#scrollwrapper { width:'+(SIDEBAR_WIDTH + 2*HIDDEN_SCROLLBAR_ASSUMED_WIDTH)+'px; right:-'+(2*HIDDEN_SCROLLBAR_ASSUMED_WIDTH-2)+'px } ', + 'input, h2, #updatestatus { width:'+(SIDEBAR_WIDTH - 2*4)+'px !important } ', + '#sidebar > *, #gamestat span, .imgpreview img { width:'+SIDEBAR_WIDTH+'px; }'].join("\n") + ''); } diff --git a/main.js b/main.js index 88e612f0..b0528a35 100644 --- a/main.js +++ b/main.js @@ -41,6 +41,7 @@ for(var i = 0; i < d.length; i++) { // security context so we can access the API easily. Setup as much as // possible without requiring scripts. document.getElementsByTagName('head')[0].innerHTML = '' + //~ + '' + '' + '' + ''; @@ -56,13 +57,15 @@ document.getElementsByTagName('body')[0].innerHTML = '' + '
' + '' + '' - + '' + '' - + '