From 85c7eba3f965f01ba219866ee2fb11f48227ae30 Mon Sep 17 00:00:00 2001 From: "Tyler B. Thrailkill" Date: Sun, 30 Jun 2019 14:44:22 -0600 Subject: [PATCH] css: Call set_layout_width even if the sbwidth is 0. Historically, the logic that was extracted into set_layout_width only did something on non-macOS platforms, where sbwidth != 0 (i.e. scrollbars have nonzero width). However, with the addition of the fluid layout width option, that function does something if either sbwidth != 0 OR fluid_layout_width is enabled. At that point, we should just call that function unconditionally. --- static/js/scroll_bar.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/scroll_bar.js b/static/js/scroll_bar.js index c9d2cab6a5..55ffa672c9 100644 --- a/static/js/scroll_bar.js +++ b/static/js/scroll_bar.js @@ -61,9 +61,8 @@ exports.initialize = function () { $("head").append(""); - - exports.set_layout_width(); } + exports.set_layout_width(); }; exports.set_layout_width = function () {