leaflet: allow space for the vertical scrollbar

This prevents hiding part of the sidebar behind
the scrollbar, when it appears.

Perhaps we should do this dynamically, only
where the scrollbar is visible, but that will
introduce flicker and resizing of the document
container, which are undersirable. This is
a small extra space, so can be visible.

Change-Id: Ic123832812663c14afadf0087ce49b742aa466c2
(cherry picked from commit 8231f902195deb9c510a03f25de4bc9662460e43)
This commit is contained in:
Ashod Nakashian 2019-02-02 11:05:14 -05:00
parent 9a8b12ce0e
commit 1e161388a1

View file

@ -885,6 +885,7 @@ L.Control.LokDialog = L.Control.extend({
_resizeSidebar: function(strId, width) {
this._currentDeck.width = width;
width = width + 15;
var sidebar = L.DomUtil.get(strId);
if (sidebar) {
sidebar.width = width;