loleaflet/src/control/Control.ColumnHeader.js | 7 +++++++ loleaflet/src/control/Control.RowHeader.js | 7 +++++++ 2 files changed, 14 insertions(+)
New commits: commit 896b12d253fbca8f1fc60eb16fc40e458fa8faec Author: Mihai Varga <mihai.va...@collabora.com> Date: Fri Dec 18 18:52:23 2015 +0200 loleaflet: ccu#1347 - row/column headers can be < than the map diff --git a/loleaflet/src/control/Control.ColumnHeader.js b/loleaflet/src/control/Control.ColumnHeader.js index fcd8064..6cd846f 100644 --- a/loleaflet/src/control/Control.ColumnHeader.js +++ b/loleaflet/src/control/Control.ColumnHeader.js @@ -76,6 +76,13 @@ L.Control.ColumnHeader = L.Control.extend({ text.innerHTML = columns[iterator].text; column.width = Math.round(converter.call(context, twip).x) - 1 + 'px'; } + if (this._map.getDocSize().x < this._map.getSize().x) { + // the column headers no longer need to strecth to the whole screen + L.DomUtil.setStyle(this._table, 'width', 0); + } + else { + L.DomUtil.setStyle(this._table, 'width', '100%'); + } }, _onUpdatePermission: function () { diff --git a/loleaflet/src/control/Control.RowHeader.js b/loleaflet/src/control/Control.RowHeader.js index 42f45fd..2aef1da 100644 --- a/loleaflet/src/control/Control.RowHeader.js +++ b/loleaflet/src/control/Control.RowHeader.js @@ -72,6 +72,13 @@ L.Control.RowHeader = L.Control.extend({ L.DomUtil.setStyle(text, 'line-height', height); L.DomUtil.setStyle(text, 'height', height); } + if (this._map.getDocSize().y < this._map.getSize().y) { + // the row headers no longer need to strecth to the whole screen + L.DomUtil.setStyle(this._table, 'height', 0); + } + else { + L.DomUtil.setStyle(this._table, 'height', '100%'); + } }, _onUpdatePermission: function () { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits