[Libreoffice-commits] online.git: loleaflet/src
Pranav Kant
pranavk at collabora.com
Fri Mar 4 07:47:57 UTC 2016
loleaflet/src/control/Control.ColumnHeader.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 87a3b5d3ac19159afd138f84286249b71aca9fc0
Author: Pranav Kant <pranavk at collabora.com>
Date: Fri Mar 4 13:15:36 2016 +0530
loleaflet: Fix JS errors
Change-Id: I9740e0a223c43449ce9f40f91b8c90250d1b7560
diff --git a/loleaflet/src/control/Control.ColumnHeader.js b/loleaflet/src/control/Control.ColumnHeader.js
index eababcb..0091893 100644
--- a/loleaflet/src/control/Control.ColumnHeader.js
+++ b/loleaflet/src/control/Control.ColumnHeader.js
@@ -65,10 +65,12 @@ L.Control.ColumnHeader = L.Control.extend({
text.setAttribute('rel', 'spreadsheet-column-' + content); // for easy addressing
text.innerHTML = content;
width = Math.round(converter.call(context, twip).x) - 1 + 'px';
- if (width === '-1px')
+ if (width === '-1px') {
L.DomUtil.setStyle(text, 'display', 'none');
- else
+ }
+ else {
L.DomUtil.setStyle(text, 'width', width);
+ }
}
},
More information about the Libreoffice-commits
mailing list