loleaflet/css/spreadsheet-mobile.css | 4 ++++ loleaflet/src/layer/tile/CalcTileLayer.js | 26 +------------------------- 2 files changed, 5 insertions(+), 25 deletions(-)
New commits: commit 5d8784b7b165e9ddb687daeb2d79c12c10ab7f00 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Mon Jan 27 14:37:35 2020 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Mon Jan 27 20:03:53 2020 +0100 loleaflet: remove the 'spreadsheet-toolbar' toolbar In mobile view, the 'spreadsheet-toolbar' toolbar is not needed anymore Change-Id: Ie4dd518cbb4db62a3b3d0da812e37219d8a8bc4b Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87548 Reviewed-by: Henry Castro <hcas...@collabora.com> Tested-by: Henry Castro <hcas...@collabora.com> diff --git a/loleaflet/css/spreadsheet-mobile.css b/loleaflet/css/spreadsheet-mobile.css index 83b1e5f59..1486a19b3 100644 --- a/loleaflet/css/spreadsheet-mobile.css +++ b/loleaflet/css/spreadsheet-mobile.css @@ -53,6 +53,10 @@ padding-bottom: 3px; } + .spreadsheet-tabs-container{ + left: 0px; + } + .spreadsheet-tabs-container, #spreadsheet-toolbar{ background-color: #fff; border-top: 1px solid #eceff4; diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js index 697622b35..021a6b2db 100644 --- a/loleaflet/src/layer/tile/CalcTileLayer.js +++ b/loleaflet/src/layer/tile/CalcTileLayer.js @@ -171,31 +171,7 @@ L.CalcTileLayer = L.TileLayer.extend({ e.isCancelled = true; }); - toolbar = $('#spreadsheet-toolbar'); - toolbar.w2toolbar({ - name: 'spreadsheet-toolbar', - tooltip: 'bottom', - hidden: true, - items: [ - {type: 'button', id: 'firstrecord', img: 'firstrecord', hint: _('First sheet')}, - {type: 'button', id: 'prevrecord', img: 'prevrecord', hint: _('Previous sheet')}, - {type: 'button', id: 'nextrecord', img: 'nextrecord', hint: _('Next sheet')}, - {type: 'button', id: 'lastrecord', img: 'lastrecord', hint: _('Last sheet')}, - {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(); + L.DomUtil.remove(L.DomUtil.get('spreadsheet-toolbar')); toolbar = $('#toolbar-down'); toolbar.w2toolbar({ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits