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

Pedro Pinto Silva (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 12 12:49:09 UTC 2020


 loleaflet/src/control/Control.MobileWizard.js |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit e71972bef1495c5299130caa12bc82f33349fa0c
Author:     Pedro Pinto Silva <pedro.silva at collabora.com>
AuthorDate: Wed Feb 12 13:46:54 2020 +0100
Commit:     Pedro Pinto da Silva <pedro.silva at collabora.com>
CommitDate: Wed Feb 12 13:48:51 2020 +0100

    Mobile: MobileWizard: swipe/scroll indicator: Avoid showing indicator when in prsence of window.mobileMenuWizard
    
    Change-Id: I2430f8c3732d42b24abc7d2e9b83d71659260573
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88529
    Tested-by: Pedro Pinto da Silva <pedro.silva at collabora.com>
    Reviewed-by: Pedro Pinto da Silva <pedro.silva at collabora.com>

diff --git a/loleaflet/src/control/Control.MobileWizard.js b/loleaflet/src/control/Control.MobileWizard.js
index 1cc8dc2b7..8c90f86f7 100644
--- a/loleaflet/src/control/Control.MobileWizard.js
+++ b/loleaflet/src/control/Control.MobileWizard.js
@@ -60,8 +60,7 @@ L.Control.MobileWizard = L.Control.extend({
 		var docType = this._map.getDocType();
 		//console.log('ContentsLength: ' + ContentsLength + ' | docType: ' + docType + '$(#mobile-wizard-content).scrollTop();'  + 'this._isTabMode: ' + this._isTabMode + ' | _tabs: ' + this._tabs);
 		var maxScrolled = 52;
-		if (ContentsLength > 5 || this._tabs) {
-			console.log('INDICATOR');
+		if ((ContentsLength > 5 || this._tabs) && !window.mobileMenuWizard) {
 			$('#mobile-wizard-content').append('<div id="mobile-wizard-scroll-indicator" style="width: 100%;height: 0px;position: fixed;z-index: 2;bottom: -7px;box-shadow: 0 -8px 20px 4px #0b87e770, 0 1px 10px 6px #0b87e7;"></div>');
 		}
 		if (docType == 'spreadsheet')


More information about the Libreoffice-commits mailing list