v1.18.x
Baris Usakli 11 years ago
parent ab1015b11e
commit 25e6f72921

@ -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;
}

Loading…
Cancel
Save