loleaflet/src/control/Control.RowHeader.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
New commits: commit 7c319aab333280bed0ded623e19f58ecbf4a910d Author: Miklos Vajna <vmik...@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); + } } }, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits