loleaflet/src/control/Control.Toolbar.js | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit cb76d01001a88545a956c1642f0dc4c7c4a69634 Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> AuthorDate: Sat Feb 29 22:08:04 2020 -0500 Commit: Ashod Nakashian <ashnak...@gmail.com> CommitDate: Thu Mar 12 13:28:04 2020 +0100 leaflet: resize the document after show/hide toolbar The toolbar changes the document size, so we should resize at the time of showing/hiding the toolbar. Failing to do this means the document is resized at the point of editing it, which causes a visual shift as the contents recenters. This avoids it by making sure the document dimensions are up-to-date at the time the toolbar shown/hidden. Change-Id: I728d13e1acac4b2dd118332a112d4b89b4d798b1 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90359 Tested-by: Ashod Nakashian <ashnak...@gmail.com> Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> diff --git a/loleaflet/src/control/Control.Toolbar.js b/loleaflet/src/control/Control.Toolbar.js index 5bd13e147..7ba2ba800 100644 --- a/loleaflet/src/control/Control.Toolbar.js +++ b/loleaflet/src/control/Control.Toolbar.js @@ -2399,6 +2399,9 @@ function onUpdatePermission(e) { $('#toolbar-down').hide(); } } + + // We've resized the document container. + map.invalidateSize(); } function onUseritemClicked(e) { // eslint-disable-line no-unused-vars _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits