Initialize presentation bar only in Impress

Change-Id: I50db46b0117b34cbbb0a95c59e8707be958c62a4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92336
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
This commit is contained in:
Szymon Kłos 2020-04-16 10:42:03 +02:00
parent 70f4f8b92e
commit 6b0fbeda6b
2 changed files with 6 additions and 1 deletions

View file

@ -855,7 +855,6 @@ function initNormalToolbar() {
map.addControl(L.control.formulaBar({showfunctionwizard: true}));
createSigningBar();
map.addControl(L.control.sheetsBar({shownavigation: true}));
map.addControl(L.control.presentationBar());
}
function setupSearchInput() {

View file

@ -60,6 +60,8 @@ L.ImpressTileLayer = L.TileLayer.extend({
L.DomUtil.toBack(container);
map.addControl(L.control.partsPreview(container, preview, {fetchThumbnail: false}));
L.DomUtil.addClass(mobileWizardContent, 'with-slide-sorter-above');
} else {
this.onDesktopAndTabletInit(map);
}
},
@ -113,6 +115,10 @@ L.ImpressTileLayer = L.TileLayer.extend({
}
},
onDesktopAndTabletInit: function(map) {
map.addControl(L.control.presentationBar());
},
onMobileInit: function (map) {
map.addControl(L.control.mobileTopBar('presentation'));