loleaflet/src/control/Control.MobileWizard.js |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 936ad9720819ff9072957347ab248828650cadbc
Author:     Tamás Zolnai <tamas.zol...@collabora.com>
AuthorDate: Wed Aug 12 18:10:00 2020 +0200
Commit:     Tamás Zolnai <tamas.zol...@collabora.com>
CommitDate: Wed Aug 12 18:51:48 2020 +0200

    Fix wrong internal state of mobile wizard.
    
    When mobile wizard is opened and then we open the
    hamburger menu without closing the mobile wizard the
    showSidebar flag is not set to false. So when a
    sidebar update comes from core then the hamburger
    menu is replaced with the sidebar content.
    
    Change-Id: I38601b3bf09309a62b2c3404f9ad27323c61cba1
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100612
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com>

diff --git a/loleaflet/src/control/Control.MobileWizard.js 
b/loleaflet/src/control/Control.MobileWizard.js
index 61f1017fb..8f399f69c 100644
--- a/loleaflet/src/control/Control.MobileWizard.js
+++ b/loleaflet/src/control/Control.MobileWizard.js
@@ -85,6 +85,8 @@ L.Control.MobileWizard = L.Control.extend({
                $('#toolbar-down').hide();
                if (window.ThisIsTheAndroidApp)
                        window.postMobileMessage('MOBILEWIZARD show');
+               if (window.mobileMenuWizard)
+                       this.map.showSidebar = false;
        },
 
        _showWizardSidebar: function() {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to