[Libreoffice-commits] online.git: loleaflet/src

Aron Budea (via logerrit) logerrit at kemper.freedesktop.org
Sun May 10 19:43:01 UTC 2020


 loleaflet/src/control/Control.UIManager.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 26911310406aefa36c9c80f65f6833feaf2c5645
Author:     Aron Budea <aron.budea at collabora.com>
AuthorDate: Sun May 10 06:58:57 2020 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Sun May 10 21:42:41 2020 +0200

    loleaflet: Show navigation controls on sheets bar on tablets
    
    regression from 1d1651795c73a7f2b73bdb17b7e2926047ffcbee
    
    Change-Id: Ifc7589a2bbabb99021ad98ed85216f1d22b5e641
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93902
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/loleaflet/src/control/Control.UIManager.js b/loleaflet/src/control/Control.UIManager.js
index 189f4e823..9c1b3e7f6 100644
--- a/loleaflet/src/control/Control.UIManager.js
+++ b/loleaflet/src/control/Control.UIManager.js
@@ -86,7 +86,7 @@ L.Control.UIManager = L.Control.extend({
 		}
 
 		if (docType === 'spreadsheet') {
-			this.map.addControl(L.control.sheetsBar({shownavigation: isDesktop}));
+			this.map.addControl(L.control.sheetsBar({shownavigation: isDesktop || window.mode.isTablet()}));
 			this.map.addControl(L.control.formulaBar());
 		}
 


More information about the Libreoffice-commits mailing list