diff options
author | Henry Castro <hcastro@collabora.com> | 2020-01-27 14:37:35 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2020-01-27 20:03:53 +0100 |
commit | 5d8784b7b165e9ddb687daeb2d79c12c10ab7f00 (patch) | |
tree | 20d66db2af8779749fd94e77b81f8011a71e3e1e | |
parent | cypress: Make test run fail when an exception is thrown. (diff) | |
download | online-5d8784b7b165e9ddb687daeb2d79c12c10ab7f00.tar.gz online-5d8784b7b165e9ddb687daeb2d79c12c10ab7f00.zip |
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 <hcastro@collabora.com>
Tested-by: Henry Castro <hcastro@collabora.com>
-rw-r--r-- | loleaflet/css/spreadsheet-mobile.css | 4 | ||||
-rw-r--r-- | loleaflet/src/layer/tile/CalcTileLayer.js | 26 |
2 files changed, 5 insertions, 25 deletions
diff --git a/loleaflet/css/spreadsheet-mobile.css b/loleaflet/css/spreadsheet-mobile.css index 83b1e5f596..1486a19b3b 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 697622b350..021a6b2dbf 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({ |