mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
Don't have the presence list occlude the "More messages" popup.
The issue, prior to this fix, is that the presence list actually gets drawn *on top of* our "more messages" popup, which is ugly. (Toggling the z-index on either or both of them did not seem necessarily to matter, but that's probably because z-index is subtler than I understand.) This fixes Trac #1078. (imported from commit a255aadb1884cf6c659085b26a36d378f680e83e)
This commit is contained in:
@@ -234,7 +234,9 @@ function resizehandler(e) {
|
||||
/* total viewport - height of navbar - height of upper sidebar - padding*/
|
||||
var bottom_sidebar_height = viewport.height() - $("#top_navbar").height() - $(".upper_sidebar").height() - 40;
|
||||
$(".bottom_sidebar").height(bottom_sidebar_height);
|
||||
var right_sidebar_height = viewport.height() - $("#top_navbar").height();
|
||||
/* viewport - navbar - notifications area - margin on the right-sidebar - padding on the notifications-bar */
|
||||
var right_sidebar_height = viewport.height() - $("#top_navbar").height() - $("#notifications-area").height() - 14 - 10;
|
||||
$("#right-sidebar").height(right_sidebar_height);
|
||||
|
||||
$("#stream_filters").css('max-height', bottom_sidebar_height * 0.75);
|
||||
$("#user_presences").css('max-height', right_sidebar_height * 0.90);
|
||||
|
||||
Reference in New Issue
Block a user