loleaflet/src/control/Control.LokDialog.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 50211a1e14a4db933abf7aeebfc8529164a32987 Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> AuthorDate: Mon Dec 9 21:06:43 2019 -0500 Commit: Ashod Nakashian <ashnak...@gmail.com> CommitDate: Tue Dec 10 03:11:22 2019 +0100 leaflet: resize the document-content properly when toggling the sidebar Change-Id: Ia0066effc2b73c2b6312e015bd67d0c7d08f5e61 Reviewed-on: https://gerrit.libreoffice.org/84795 Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js index 18efb9de4..997fb9aac 100644 --- a/loleaflet/src/control/Control.LokDialog.js +++ b/loleaflet/src/control/Control.LokDialog.js @@ -870,7 +870,8 @@ L.Control.LokDialog = L.Control.extend({ }, _onSidebarClose: function(dialogId) { - this._resizeSidebar(dialogId, 0); + var strId = this._toStrId(dialogId); + this._resizeSidebar(strId, 0); delete this._dialogs[dialogId]; if (this._currentDeck) { $('#' + this._currentDeck.strId).remove(); @@ -1059,6 +1060,7 @@ L.Control.LokDialog = L.Control.extend({ this._map.options.documentContainer.style.right = wrapper.offsetWidth + 'px'; else this._map.options.documentContainer.style.right = (width - 15).toString() + 'px'; + var spreadsheetRowColumnFrame = L.DomUtil.get('spreadsheet-row-column-frame'); if (spreadsheetRowColumnFrame) spreadsheetRowColumnFrame.style.right = width.toString() + 'px'; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits