summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2020-09-01 16:52:35 +0100
committerJan Holesovsky <kendy@collabora.com>2020-09-02 14:57:34 +0200
commit91d6a485382494f618f970cb31be4be570ca9643 (patch)
treea8f4871112da3c3c1927f36fb230895bc7b19ef8
parentcalc canvas: ensure that the fraction width rounds to the pixel width. (diff)
downloadonline-91d6a485382494f618f970cb31be4be570ca9643.tar.gz
online-91d6a485382494f618f970cb31be4be570ca9643.zip
calc tiles: use canvas rendering for mobile too.
This way the row/column headers line up - and it's the future. Change-Id: I56b2c2527dcc751ed06fc3b30aff22544ec4c269
-rw-r--r--loleaflet/src/layer/tile/CalcTileLayer.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js
index eedf8966a4..fc96f05460 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -4,8 +4,7 @@
*/
/* global */
-var BaseTileLayer = L.Browser.mobile ? L.TileLayer : L.CanvasTileLayer;
-L.CalcTileLayer = BaseTileLayer.extend({
+L.CalcTileLayer = L.CanvasTileLayer.extend({
options: {
// TODO: sync these automatically from SAL_LOK_OPTIONS
sheetGeometryDataEnabled: true,
@@ -82,7 +81,7 @@ L.CalcTileLayer = BaseTileLayer.extend({
map.addControl(L.control.tabs());
map.addControl(L.control.columnHeader());
map.addControl(L.control.rowHeader());
- BaseTileLayer.prototype.onAdd.call(this, map);
+ L.CanvasTileLayer.prototype.onAdd.call(this, map);
map.on('resize', function () {
if (this.isCursorVisible()) {