From d4d4a1175006bdc13d5c6ea98980141f6071197d Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Mon, 5 Dec 2016 15:07:27 +0530 Subject: [PATCH] loleaflet: Disable zoom controls in spreadsheets, don't remove Due to a bug in w2ui library, w2overlay doesn't popup when it is near the edge of the screen (reproduceable only when no. of users are greater than 3). Lets disable zoom controls in case of spreadsheets so that userlist is not near the edge of the screen, and hence pops up. Change-Id: I6f2647d124484235afe6c92da18be38ed8e2b9ce Reviewed-on: https://gerrit.libreoffice.org/31621 Reviewed-by: Andras Timar Tested-by: Andras Timar --- loleaflet/dist/toolbar/toolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js index 6fd3f5af3d..727994803e 100644 --- a/loleaflet/dist/toolbar/toolbar.js +++ b/loleaflet/dist/toolbar/toolbar.js @@ -760,7 +760,7 @@ map.on('doclayerinit', function () { case 'spreadsheet': toolbarUp.remove('inserttable', 'styles', 'alignblock', 'bullet', 'numbering', 'break-numbering'); toolbarUpMore.remove('inserttable', 'styles', 'alignblock', 'bullet', 'numbering', 'break-numbering'); - statusbar.remove('zoomreset', 'zoomout', 'zoomin', 'zoomlevel'); + statusbar.disable('zoomreset', 'zoomout', 'zoomin', 'zoomlevel'); statusbar.insert('left', [ {type: 'break', id:'break1'}, {type: 'html', id: 'StatusDocPos',