From 47ee0ec383c0218067eb0965fd9b259e4aa7fcf5 Mon Sep 17 00:00:00 2001 From: John McLear Date: Fri, 27 Jan 2012 00:43:00 +0000 Subject: [PATCH] Fix minor styling isue where focus chat box would try to show up even if chat was stuck to screen --- static/js/chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/chat.js b/static/js/chat.js index 6d0711378..0ff8b398a 100644 --- a/static/js/chat.js +++ b/static/js/chat.js @@ -74,9 +74,9 @@ var chat = (function() console.log(isStuck); chat.show(); if(!isStuck) { // Stick it to - $('#chatbox').css({"right":"0px", "top":"36px", "border-radius":"0px", "height":"auto", "border-right":"none", "border-left":"1px solid #ccc", "border-top":"none", "background-color":"#f1f1f1"}); + $('#chatbox').css({"right":"0px", "top":"36px", "border-radius":"0px", "height":"auto", "border-right":"none", "border-left":"1px solid #ccc", "border-top":"none", "background-color":"#f1f1f1", "width":"185px"}); $('#chattext').css({"top":"0px"}); - $('#editorcontainer').css({"right":"170px", "width":"auto"}); + $('#editorcontainer').css({"right":"192px", "width":"auto"}); isStuck = true; } else { // Unstick it $('#chatbox').css({"right":"20px", "top":"auto", "border-top-left-radius":"5px", "border-top-right-radius":"5px", "border-right":"1px solid #999", "height":"200px", "border-top":"1px solid #999", "background-color":"#f7f7f7"});