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.
This commit is contained in:
Tyler B. Thrailkill 2019-06-30 14:44:22 -06:00 committed by Tim Abbott
parent 2f8e1c0393
commit 85c7eba3f9
1 changed files with 1 additions and 2 deletions

View File

@ -61,9 +61,8 @@ exports.initialize = function () {
$("head").append("<style> @media (max-width: 1165px) { .compose-content, .header-main .column-middle { margin-right: " + (7 + sbWidth) + "px !important; } } " +
"@media (max-width: 775px) { .fixed-app .column-middle { margin-left: " + (7 + sbWidth) + "px !important; } } " +
"</style>");
exports.set_layout_width();
}
exports.set_layout_width();
};
exports.set_layout_width = function () {