[Libreoffice-commits] online.git: loleaflet/src
Andras Timar
andras.timar at collabora.com
Fri Feb 26 14:31:55 UTC 2016
loleaflet/src/control/Control.ColumnHeader.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit d14fccb67f558f4d0b4612befa70c768956e0e92
Author: Andras Timar <andras.timar at collabora.com>
Date: Fri Feb 26 15:31:18 2016 +0100
hide column headers of hidden columns
diff --git a/loleaflet/src/control/Control.ColumnHeader.js b/loleaflet/src/control/Control.ColumnHeader.js
index ab640ce..eababcb 100644
--- a/loleaflet/src/control/Control.ColumnHeader.js
+++ b/loleaflet/src/control/Control.ColumnHeader.js
@@ -65,7 +65,10 @@ 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';
- L.DomUtil.setStyle(text, 'width', width);
+ if (width === '-1px')
+ L.DomUtil.setStyle(text, 'display', 'none');
+ else
+ L.DomUtil.setStyle(text, 'width', width);
}
},
More information about the Libreoffice-commits
mailing list