mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-05 20:11:26 +01:00
closes #434
This commit is contained in:
@@ -86,8 +86,8 @@ define(['taskbar'], function(taskbar) {
|
||||
}
|
||||
|
||||
function center(chatModal) {
|
||||
chatModal.css("position","absolute");
|
||||
chatModal.css("top", Math.max(0, (($(window).height() - $(chatModal).outerHeight()) / 2) + $(window).scrollTop()) + "px");
|
||||
chatModal.css("position", "fixed");
|
||||
chatModal.css("top", "100px");
|
||||
chatModal.css("left", Math.max(0, (($(window).width() - $(chatModal).outerWidth()) / 2) + $(window).scrollLeft()) + "px");
|
||||
return chatModal;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user