[Libreoffice-commits] online.git: loleaflet/src

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Fri Dec 13 19:11:53 UTC 2019


 loleaflet/src/layer/tile/TileLayer.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d1ae9096cf5de023e8644484070efe472e2b255b
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Fri Dec 13 19:22:33 2019 +0100
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Fri Dec 13 20:11:34 2019 +0100

    Impress: Slide is partly covered by the keyboard (on mobile)
    
    This behavior was added in:
    dd9aefd5d81839e5c9e2c6b8cc926fcf74380ba6
    
    It was added to avoid zoom change when the mobile keyboard
    comes up. We keep this behavior for Writer, but in case of
    Impress we do a relayout when the keyboard is displayed, to
    keep the slide centered.
    
    Change-Id: I0d0f23824ff04afd0fd5f8919ccfaea7911551d2
    Reviewed-on: https://gerrit.libreoffice.org/85132
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>

diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index af8a24fda..26afa6c71 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -3047,7 +3047,7 @@ L.TileLayer = L.GridLayer.extend({
 		if (isNaN(this._docWidthTwips)) { return; }
 		var oldSize = e ? e.oldSize : this._map.getSize();
 		var newSize = e ? e.newSize : this._map.getSize();
-		if (newSize.x - oldSize.x === 0) { return; }
+		if (this._docType !== 'presentation' && newSize.x - oldSize.x === 0) { return; }
 
 		var widthTwips = newSize.x * this._map.options.tileWidthTwips / this._tileSize;
 		var ratio = widthTwips / this._docWidthTwips;


More information about the Libreoffice-commits mailing list