Merge pull request #2010 from ether/sticky-chat-resize

Sticky chat resize
This commit is contained in:
John McLear 2013-11-25 09:36:44 -08:00
commit b527ef2bc5
1 changed files with 2 additions and 0 deletions

View File

@ -43,9 +43,11 @@ var chat = (function()
$('#chatbox').addClass("stickyChat"); $('#chatbox').addClass("stickyChat");
$('#chattext').css({"top":"0px"}); $('#chattext').css({"top":"0px"});
$('#editorcontainer').css({"right":"192px"}); $('#editorcontainer').css({"right":"192px"});
$('.stickyChat').css("top",$('#editorcontainer').offset().top+"px");
isStuck = true; isStuck = true;
} else { // Unstick it } else { // Unstick it
padcookie.setPref("chatAlwaysVisible", false); padcookie.setPref("chatAlwaysVisible", false);
$('.stickyChat').css("top", "auto");
$('#chatbox').removeClass("stickyChat"); $('#chatbox').removeClass("stickyChat");
$('#chattext').css({"top":"25px"}); $('#chattext').css({"top":"25px"});
$('#editorcontainer').css({"right":"0px"}); $('#editorcontainer').css({"right":"0px"});