mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Factor out resizing page components from the resize handler
(imported from commit 18410406f6a2401b21a9d5336a8ae14046fc0375)
This commit is contained in:
parent
7c7835c357
commit
262fb9b14c
@ -335,7 +335,7 @@ function get_new_heights() {
|
||||
return res;
|
||||
}
|
||||
|
||||
function resizehandler(e) {
|
||||
exports.resize_page_components = function () {
|
||||
var composebox = $("#compose");
|
||||
var floating_recipient_bar = $("#floating_recipient_bar");
|
||||
var tab_bar = $("#tab_bar");
|
||||
@ -359,6 +359,10 @@ function resizehandler(e) {
|
||||
$("#right-sidebar").height(h.right_sidebar_height);
|
||||
$("#stream_filters").css('max-height', h.stream_filters_max_height);
|
||||
$("#user_presences").css('max-height', h.user_presences_max_height);
|
||||
};
|
||||
|
||||
function resizehandler(e) {
|
||||
exports.resize_page_components();
|
||||
|
||||
// This function might run onReady (if we're in a narrow window),
|
||||
// but before we've loaded in the messages; in that case, don't
|
||||
|
||||
Loading…
Reference in New Issue
Block a user