From 00d9202924879b54dcecca61e78256cd477b87ac Mon Sep 17 00:00:00 2001 From: Stefan Breunig Date: Fri, 8 Feb 2013 02:43:28 +0100 Subject: [PATCH] =?UTF-8?q?attempt=20to=20fix=20#17.=20If=20the=20page=20b?= =?UTF-8?q?reaks=20for=20you,=20please=20try=20clearing=20your=20cache=20a?= =?UTF-8?q?nd=20reloading=20the=20page.=20If=20that=20doesn=E2=80=99t=20wo?= =?UTF-8?q?rk,=20please=20open=20a=20bug=20report.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/boot.js | 6 ++-- main.js | 18 +++++++---- style.css | 22 +++++++++++-- total-conversion-build.user.js | 58 +++++++++++++++++++++------------- 4 files changed, 71 insertions(+), 33 deletions(-) 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 = '' + '
' + '' + '' - + '' + '' - + '