diff --git a/static/js/ui.js b/static/js/ui.js index 6688aac3bc..450a380f31 100644 --- a/static/js/ui.js +++ b/static/js/ui.js @@ -352,16 +352,6 @@ function set_user_list_heights(res, usable_height, user_presences, group_pms) { res.group_pms_max_height = blocks[1].max_height; } -function scrollbarWidth() { - $('body').prepend(''); - - var scrollwidth = $("#outertest").outerWidth() - $("#innertest").outerWidth(); - - $("#outertest").remove(); - - return scrollwidth; -} - function get_new_heights() { var res = {}; var viewport_height = viewport.height(); @@ -1901,32 +1891,6 @@ $(function () { } }); -// Workaround for browsers with fixed scrollbars -$(function () { - var sbWidth = scrollbarWidth(), - halfSbWidth = Math.floor(sbWidth/2); - - if (sbWidth > 0) { - var frbMargin = parseInt($(".recipient-bar-main").css("margin-right")); - - $(".header").css("left", "-" + sbWidth + "px"); - $(".header-main").css("left", sbWidth + "px"); - - $("#compose").css("left", "-" + sbWidth + "px"); - $(".compose-content").css("left", halfSbWidth + "px"); - - var rbcMaxWidth = parseInt($(".recipient-bar-content").css("max-width")); - $(".recipient-bar-content").css("max-width", (1210 + sbWidth) + "px"); - - var rbcMarginRight = parseInt($(".recipient-bar-main").css("margin-right")); - $(".recipient-bar-main").css("margin-right", (210 + sbWidth) + "px"); - - $("#user-list, #group-pm-list").css("margin-right", sbWidth + "px"); - - $("head").append(""); - $("#tab_list").css("padding-right", "15px"); - } -}); return exports; }()); diff --git a/static/styles/zulip.css b/static/styles/zulip.css index 8a8276451b..d9535c3b87 100644 --- a/static/styles/zulip.css +++ b/static/styles/zulip.css @@ -390,7 +390,10 @@ a:hover code { #user_presences, #group-pms { list-style-position: inside; /* Draw the bullets inside our box */ margin-left: 0; - overflow-y: auto; + overflow-y: hidden; +} +#user_presences:hover, #group-pms:hover { + overflow-y: auto; } #user_presences li:hover, #group-pms li:hover { diff --git a/templates/zerver/index.html b/templates/zerver/index.html index 440692e773..ddb78a5f55 100644 --- a/templates/zerver/index.html +++ b/templates/zerver/index.html @@ -58,7 +58,7 @@ var page_params = {{ page_params }}; {% include "zerver/navbar.html" %} -
+
{% include "zerver/left-sidebar.html" %}