Merge pull request #2010 from ether/sticky-chat-resize
Sticky chat resize
This commit is contained in:
commit
b527ef2bc5
|
@ -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"});
|
||||||
|
|
Loading…
Reference in New Issue