loleaflet/src/control/Control.ColumnHeader.js |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit d14fccb67f558f4d0b4612befa70c768956e0e92
Author: Andras Timar <andras.ti...@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);
                }
        },
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to