loleaflet/src/control/Control.MobileWizard.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
New commits: commit a5297847888a2f0f54a2a81c9012c9fd687454b9 Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Thu Feb 20 17:08:01 2020 +0000 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Thu Feb 20 18:42:30 2020 +0100 mobile: hide impress indent paragraph properties. Users confused between outline and indent settings. Change-Id: I693e41d4d456e47f53d7f6392cde9bec6b038029 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89149 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Michael Meeks <michael.me...@collabora.com> diff --git a/loleaflet/src/control/Control.MobileWizard.js b/loleaflet/src/control/Control.MobileWizard.js index 0c6859d0d..e18b8ccdf 100644 --- a/loleaflet/src/control/Control.MobileWizard.js +++ b/loleaflet/src/control/Control.MobileWizard.js @@ -367,7 +367,7 @@ L.Control.MobileWizard = L.Control.extend({ var textIdx = this._findIdxInParentById(deck, textName); if (stylesIdx >= 0 && this.map.getDocType() === 'spreadsheet') - { // remove rather useless styles panel + { // remove rather useless calc styles panel deck.children.splice(stylesIdx, 1); } else if (stylesIdx >= 0 && textIdx >= 0) @@ -376,10 +376,15 @@ L.Control.MobileWizard = L.Control.extend({ deck.children[textIdx].children[0].children = moveContent.concat(deck.children[textIdx].children[0].children); deck.children.splice(stylesIdx, 1); //remove the styles property } - this._removeItems(deck, ['cellbordertype', 'borderlinestyle', 'borderlinecolor', - 'editcontour', 'spacingbar', 'linespacing', - 'stylenew', 'styleupdate', - 'beginarrowstyle', 'endarrowstyle']); + var removeItems = ['cellbordertype', 'borderlinestyle', 'borderlinecolor', + 'editcontour', 'spacingbar', 'linespacing', + 'stylenew', 'styleupdate', + 'beginarrowstyle', 'endarrowstyle']; + + if (this.map.getDocType() === 'presentation') + removeItems.push('indentfieldbox'); + + this._removeItems(deck, removeItems); } }, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits