[Libreoffice-commits] online.git: loleaflet/css loleaflet/src
Henry Castro (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jan 28 13:10:11 UTC 2020
loleaflet/css/spreadsheet-mobile.css | 2 +-
loleaflet/src/layer/tile/CalcTileLayer.js | 20 +++++++++++++++++++-
2 files changed, 20 insertions(+), 2 deletions(-)
New commits:
commit 62fe18a04439b12a8ca09e1ae624eb62cfb403e0
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Tue Jan 28 08:50:20 2020 -0400
Commit: Henry Castro <hcastro at collabora.com>
CommitDate: Tue Jan 28 14:09:53 2020 +0100
loleaflet: mobile: restore 'Insert sheet' toolbar item
Change-Id: Ib51341c517954519b0dea2263ac9bf16b052b3f8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87615
Reviewed-by: Henry Castro <hcastro at collabora.com>
Tested-by: Henry Castro <hcastro at collabora.com>
diff --git a/loleaflet/css/spreadsheet-mobile.css b/loleaflet/css/spreadsheet-mobile.css
index 7f026ab3a..37f685d9e 100644
--- a/loleaflet/css/spreadsheet-mobile.css
+++ b/loleaflet/css/spreadsheet-mobile.css
@@ -54,7 +54,7 @@
}
.spreadsheet-tabs-container {
- left: 0px;
+ left: 24px;
overflow-x: scroll;
scrollbar-width: none; /*css draft (firefox only)*/
-ms-scrollbar: none; /*ie*/
diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js
index 021a6b2db..288a7322e 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -171,7 +171,25 @@ L.CalcTileLayer = L.TileLayer.extend({
e.isCancelled = true;
});
- L.DomUtil.remove(L.DomUtil.get('spreadsheet-toolbar'));
+ toolbar = $('#spreadsheet-toolbar');
+ toolbar.w2toolbar({
+ name: 'spreadsheet-toolbar',
+ tooltip: 'bottom',
+ hidden: true,
+ items: [{type: 'button', id: 'insertsheet', img: 'insertsheet', hint: _('Insert sheet')}],
+ onClick: function (e) {
+ window.onClick(e, e.target);
+ window.hideTooltip(this, e.target);
+ }
+ });
+ toolbar.bind('touchstart', function(e) {
+ w2ui['spreadsheet-toolbar'].touchStarted = true;
+ var touchEvent = e.originalEvent;
+ if (touchEvent && touchEvent.touches.length > 1) {
+ L.DomEvent.preventDefault(e);
+ }
+ });
+ toolbar.show();
toolbar = $('#toolbar-down');
toolbar.w2toolbar({
More information about the Libreoffice-commits
mailing list