summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2019-12-13 19:22:33 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2019-12-13 20:11:34 +0100
commitd1ae9096cf5de023e8644484070efe472e2b255b (patch)
treea55b79aa603df975b67e52a9afd7a311e80121ce
parenta985664f713331f2a2c534b55f2318ef66d549e3 (diff)
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@gmail.com> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
-rw-r--r--loleaflet/src/layer/tile/TileLayer.js2
1 files changed, 1 insertions, 1 deletions
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;