[Libreoffice-commits] online.git: loleaflet/dist loleaflet/src
Pranav Kant
pranavk at collabora.co.uk
Mon Jan 16 15:35:06 UTC 2017
loleaflet/dist/loleaflet.css | 9 +++++++--
loleaflet/src/control/Control.Scroll.js | 2 +-
2 files changed, 8 insertions(+), 3 deletions(-)
New commits:
commit 962cc570cdd20fb5e7142a7ff3538d483b3790ce
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Mon Jan 16 20:17:34 2017 +0530
loleaflet: More document space, use space reserved for scrollbars
Don't give extra pixels to scrollbars and reduce the document
area that is visible on the screen. Instead put these scrollbars
on top of the content and show them only when user hovers over
the scrollbar.
Change-Id: I7f7b34d0efde24bfad04324f5dfe3e3e35c752fc
diff --git a/loleaflet/dist/loleaflet.css b/loleaflet/dist/loleaflet.css
index 787a328..8583902 100644
--- a/loleaflet/dist/loleaflet.css
+++ b/loleaflet/dist/loleaflet.css
@@ -11,12 +11,17 @@
#map {
position: absolute;
top: 0px;
- bottom: 16px;
+ bottom: 0px;
left: 0px;
- right: 16px;
+ right: 0px;
z-index: 10;
}
+.scroll-container .mCSB_scrollTools.mCSB_1_scrollbar {
+ position: absolute;
+ z-index: 1000;
+}
+
body {
margin: 0;
}
diff --git a/loleaflet/src/control/Control.Scroll.js b/loleaflet/src/control/Control.Scroll.js
index 40089a9..8728d88 100644
--- a/loleaflet/src/control/Control.Scroll.js
+++ b/loleaflet/src/control/Control.Scroll.js
@@ -20,7 +20,7 @@ L.Control.Scroll = L.Control.extend({
var control = this;
$('.scroll-container').mCustomScrollbar({
axis: 'yx',
- theme: 'dark-thick',
+ theme: 'minimal-dark',
scrollInertia: 0,
callbacks:{
onScroll: function() {
More information about the Libreoffice-commits
mailing list