[Libreoffice-commits] online.git: loleaflet/src
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Mon Sep 28 15:48:25 UTC 2020
loleaflet/src/control/Permission.js | 3 +++
loleaflet/src/map/Map.js | 3 +++
2 files changed, 6 insertions(+)
New commits:
commit ccfc81dc020560c7d5287c098b85834003e8b89c
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Mon Sep 28 12:58:13 2020 +0300
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Mon Sep 28 17:48:07 2020 +0200
tdf#136459: Show the spreadsheet formula input bar when switching to edit mode
Factor out a code snippet from L.Map._onResize() into a function
called showCalcInputBar(). Call that (in the iOS app in iPad case,
which is what the bug is about) from L.Map._enterEditMode().
Seems to work. No idea if this is the ideal solution.
Change-Id: I29677201212b37ebb292591b217741d8301dfa15
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103542
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Tor Lillqvist <tml at collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103551
diff --git a/loleaflet/src/control/Permission.js b/loleaflet/src/control/Permission.js
index 6d4868919..4bef3b8dd 100644
--- a/loleaflet/src/control/Permission.js
+++ b/loleaflet/src/control/Permission.js
@@ -100,6 +100,9 @@ L.Map.include({
this.setZoom(10);
}
+ if (window.ThisIsTheiOSApp && window.mode.isTablet() && this._docLayer._docType === 'spreadsheet')
+ this.showCalcInputBar(0);
+
if (window.ThisIsTheAndroidApp)
window.postMobileMessage('EDITMODE on');
},
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 70f22c605..db096ab22 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -1277,7 +1277,10 @@ L.Map = L.Evented.extend({
}
}
}
+ this.showCalcInputBar(deckOffset);
+ },
+ showCalcInputBar: function(deckOffset) {
if (this.dialog._calcInputBar && !this.dialog._calcInputBar.isPainting) {
var id = this.dialog._calcInputBar.id;
var calcInputbar = L.DomUtil.get('calc-inputbar');
More information about the Libreoffice-commits
mailing list