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

Miklos Vajna vmiklos at collabora.co.uk
Tue Mar 1 12:46:21 UTC 2016


 loleaflet/src/control/Control.RowHeader.js |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 7c319aab333280bed0ded623e19f58ecbf4a910d
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Mar 1 11:54:40 2016 +0100

    ccu#1573 loleaflet: hide row headers of hidden rows
    
    This is the row equivalent of commit
    d14fccb67f558f4d0b4612befa70c768956e0e92 (hide column headers of hidden
    columns, 2016-02-26).

diff --git a/loleaflet/src/control/Control.RowHeader.js b/loleaflet/src/control/Control.RowHeader.js
index b69bc02..b7a8e72 100644
--- a/loleaflet/src/control/Control.RowHeader.js
+++ b/loleaflet/src/control/Control.RowHeader.js
@@ -64,8 +64,12 @@ L.Control.RowHeader = L.Control.extend({
 			text.setAttribute('rel', 'spreadsheet-row-' + content); // for easy addressing
 			text.innerHTML = content;
 			height = Math.round(converter.call(context, twip).y) - 1 + 'px';
-			L.DomUtil.setStyle(text, 'line-height', height);
-			L.DomUtil.setStyle(text, 'height', height);
+			if (height === '-1px') {
+				L.DomUtil.setStyle(text, 'display', 'none');
+			} else {
+				L.DomUtil.setStyle(text, 'line-height', height);
+				L.DomUtil.setStyle(text, 'height', height);
+			}
 		}
 	},
 


More information about the Libreoffice-commits mailing list