[Libreoffice-commits] online.git: loleaflet/src
Pranav Kant
pranavk at collabora.com
Thu May 12 14:50:01 UTC 2016
loleaflet/src/control/Control.Scroll.js | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 268eb615c20773d4d90eb2ec429e5ffa465513fb
Author: Pranav Kant <pranavk at 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;
},
More information about the Libreoffice-commits
mailing list