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

Pranav Kant pranavk at collabora.co.uk
Fri Feb 17 16:47:33 UTC 2017


 loleaflet/dist/loleaflet.css   |    6 ++++++
 loleaflet/dist/spreadsheet.css |   10 +++++++++-
 loleaflet/src/map/Map.js       |    1 +
 3 files changed, 16 insertions(+), 1 deletion(-)

New commits:
commit 8fa0bb54bda8c41f594770267c70c13a454e7eaf
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Fri Feb 17 21:12:17 2017 +0530

    loleaflet: fix readonly UI for spreadsheets
    
    There is still one known problem - for some reason, when a spreasheet is
    opened in readonly mode, the ViewRowColumnHeader request sent to server
    has height=0 leading to server sending no rows information back to client.
    Though the problem gets resolved when one scrolls the spreadsheet
    window, but something to fix.
    
    Change-Id: I2aefafd1a93c1bc5a9ad8581edb83018ec9a3f07

diff --git a/loleaflet/dist/loleaflet.css b/loleaflet/dist/loleaflet.css
index ef7a3fd..956aaee 100644
--- a/loleaflet/dist/loleaflet.css
+++ b/loleaflet/dist/loleaflet.css
@@ -66,12 +66,18 @@ body {
     #document-container.spreadsheet-document {
 	top: 93px !important;
     }
+    #document-container.spreadsheet-document.readonly {
+	top: 50px !important;
+    }
     #document-container {
 	top: 40px;
     }
     #spreadsheet-row-column-frame {
 	top: 73px !important;
     }
+    #spreadsheet-row-column-frame.readonly {
+	top: 30px !important;
+    }
     /* There seems to be some bug in w2ui library -
      * when we are in very low screen width, the toolbar-up-more
      * toolbar's width doesn't adjust according to its children toolbar
diff --git a/loleaflet/dist/spreadsheet.css b/loleaflet/dist/spreadsheet.css
index b75b78c..15ea4ff 100644
--- a/loleaflet/dist/spreadsheet.css
+++ b/loleaflet/dist/spreadsheet.css
@@ -3,7 +3,11 @@
         top: 123px;
         left: 50px;
         bottom: 65px;
-	}
+}
+
+#document-container.spreadsheet-document.readonly {
+        top: 50px;
+}
 
 .spreadsheet-tabs-container {
 	margin: 0;
@@ -62,6 +66,10 @@
 	bottom: 65px;
 }
 
+#spreadsheet-row-column-frame.readonly {
+        top: 30px;
+}
+
 .spreadsheet-header-corner {
 	border: 1px solid darkgrey;
 	background-color: lightgrey;
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 51fc434..7b07fe9 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -108,6 +108,7 @@ L.Map = L.Evented.extend({
 				L.DomUtil.addClass(L.DomUtil.get('toolbar-wrapper'), 'readonly');
 				L.DomUtil.addClass(L.DomUtil.get('main-menu'), 'readonly');
 				L.DomUtil.addClass(L.DomUtil.get('presentation-controls-wrapper'), 'readonly');
+				L.DomUtil.addClass(L.DomUtil.get('spreadsheet-row-column-frame'), 'readonly');
 			}
 		}, this);
 		this.on('doclayerinit', function() {


More information about the Libreoffice-commits mailing list