loleaflet/src/control/Control.Scroll.js | 1 + 1 file changed, 1 insertion(+)
New commits: commit 268eb615c20773d4d90eb2ec429e5ffa465513fb Author: Pranav Kant <pran...@collabora.com> Date: Thu May 12 20:17:10 2016 +0530 loleaflet: Update scrollbar after resizing the container Currently, it does get fired, it seems, and vertical scrollbar does get adjusted automatically according to new size, but horizontal scrollbar doesn't for some reason/bug. Lets explicitly tell the plugin to update on every resize we do. Change-Id: I706228302cb43fb22cf54acfe1b990d3e66d5281 diff --git a/loleaflet/src/control/Control.Scroll.js b/loleaflet/src/control/Control.Scroll.js index 1ce203f..8cc7dcb 100644 --- a/loleaflet/src/control/Control.Scroll.js +++ b/loleaflet/src/control/Control.Scroll.js @@ -116,6 +116,7 @@ L.Control.Scroll = L.Control.extend({ this._ignoreScroll = true; L.DomUtil.setStyle(this._mockDoc, 'width', e.x + 'px'); L.DomUtil.setStyle(this._mockDoc, 'height', e.y + 'px'); + $('.scroll-container').mCustomScrollbar('update'); this._ignoreScroll = null; }, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits