[Libreoffice-commits] online.git: loleaflet/src
Ashod Nakashian (via logerrit)
logerrit at kemper.freedesktop.org
Tue Dec 10 02:11:45 UTC 2019
loleaflet/src/control/Control.LokDialog.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 50211a1e14a4db933abf7aeebfc8529164a32987
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Mon Dec 9 21:06:43 2019 -0500
Commit: Ashod Nakashian <ashnakash at 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 <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at 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';
More information about the Libreoffice-commits
mailing list