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:
parent
9a8b12ce0e
commit
1e161388a1
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue