diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-10-31 14:39:20 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-11-01 15:29:20 +0000 |
commit | 9390b07d71899058d22e6a91c6d5ae165cff2315 (patch) | |
tree | f3cf0533cf0d55614fa7657f7ad34fd9ed19d12a | |
parent | 823e2b2a929f213bb0b112c6f2394548804e9ea1 (diff) |
Enable spreadsheet zoom.feature/calczoom
Change-Id: I019fab6b91b170562e2a5be0729de9f52a0af1e0
-rw-r--r-- | loleaflet/src/control/Control.Toolbar.js | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/loleaflet/src/control/Control.Toolbar.js b/loleaflet/src/control/Control.Toolbar.js index 7eb1d3ea4..f49b3841e 100644 --- a/loleaflet/src/control/Control.Toolbar.js +++ b/loleaflet/src/control/Control.Toolbar.js @@ -167,20 +167,10 @@ function onClick(e, id, item, subItem) { map._socket.sendMessage('commandvalues command=.uno:DocumentRepair'); } else if (id === 'zoomin' && map.getZoom() < map.getMaxZoom()) { - if (map.getDocType() === 'spreadsheet') { - map.setZoom(14); // 200% - } - else { - map.zoomIn(1); - } + map.zoomIn(1); } else if (id === 'zoomout' && map.getZoom() > map.getMinZoom()) { - if (map.getDocType() === 'spreadsheet') { - map.setZoom(10); // 100% - } - else { - map.zoomOut(1); - } + map.zoomOut(1); } else if (item.scale) { map.setZoom(item.scale); |