[Libreoffice-commits] online.git: loleaflet/dist loleaflet/src

Mihai Varga mihai.varga at collabora.com
Mon Nov 2 05:27:10 PST 2015


 loleaflet/dist/leaflet.css                    |    8 ++++++++
 loleaflet/src/control/Control.PartsPreview.js |    2 +-
 loleaflet/src/control/Control.Tabs.js         |    2 +-
 3 files changed, 10 insertions(+), 2 deletions(-)

New commits:
commit 0bdc175725b691d4edffdb72d37fdf454a4eef2d
Author: Mihai Varga <mihai.varga at collabora.com>
Date:   Mon Nov 2 15:13:09 2015 +0200

    loleaflet: handle spreadsheet tabs and slide previews with css

diff --git a/loleaflet/dist/leaflet.css b/loleaflet/dist/leaflet.css
index b1a3dac..033e8ab 100644
--- a/loleaflet/dist/leaflet.css
+++ b/loleaflet/dist/leaflet.css
@@ -699,6 +699,10 @@ a.leaflet-control-buttons:hover:first-child {
     border: none;
 }
 
+.parts-preview-document {
+	left: 195px !important;
+}
+
 .parts-preview {
 	background: #DFDFDF;
 	position: absolute;
@@ -728,6 +732,10 @@ a.leaflet-control-buttons:hover:first-child {
 	cursor: pointer;
 	}
 
+.spreadsheet-document {
+	bottom: 20px !important;
+}
+
 .spreadsheet-tab {
 	margin: 0;
 	padding: 0;
diff --git a/loleaflet/src/control/Control.PartsPreview.js b/loleaflet/src/control/Control.PartsPreview.js
index 2a6c5ad..1db67a7 100644
--- a/loleaflet/src/control/Control.PartsPreview.js
+++ b/loleaflet/src/control/Control.PartsPreview.js
@@ -29,7 +29,7 @@ L.Control.PartsPreview = L.Control.extend({
 		if (!this._previewInitialized && docType === 'presentation') {
 			// make room for the preview
 			var docContainer = L.DomUtil.get('document-container');
-			L.DomUtil.setStyle(docContainer, 'left', '195px');
+			L.DomUtil.addClass(docContainer, 'parts-preview-document');
 			setTimeout(L.bind(function () {
 				this._map.invalidateSize();
 				$('.scroll-container').mCustomScrollbar('update');
diff --git a/loleaflet/src/control/Control.Tabs.js b/loleaflet/src/control/Control.Tabs.js
index b5ce57d..68d2519 100644
--- a/loleaflet/src/control/Control.Tabs.js
+++ b/loleaflet/src/control/Control.Tabs.js
@@ -25,7 +25,7 @@ L.Control.Tabs = L.Control.extend({
 			if (!this._tabsInitialized) {
 				// make room for the preview
 				var docContainer = L.DomUtil.get('document-container');
-				L.DomUtil.setStyle(docContainer, 'bottom', '20px');
+				L.DomUtil.addClass(docContainer, 'spreadsheet-document');
 				setTimeout(L.bind(function () {
 					this._map.invalidateSize();
 					$('.scroll-container').mCustomScrollbar('update');


More information about the Libreoffice-commits mailing list