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

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Thu Feb 20 17:42:50 UTC 2020


 loleaflet/src/control/Control.MobileWizard.js |   15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

New commits:
commit a5297847888a2f0f54a2a81c9012c9fd687454b9
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Thu Feb 20 17:08:01 2020 +0000
Commit:     Michael Meeks <michael.meeks at 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 <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Michael Meeks <michael.meeks at 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);
 		}
 	},
 


More information about the Libreoffice-commits mailing list