[Libreoffice-bugs] [Bug 127094] Bottom toolbar isn't displayed on mobile

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Aug 26 09:41:55 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=127094

--- Comment #4 from OrangeDev <tuananh.hedspi at gmail.com> ---
In my debug in old version of bundle.js, createToolbar() method has the
following code:
        if (_inMobileMode()) {
            $("#mobile-edit-button").show();
            initMobileToolbar(toolItems)
        } else {
            $("#toolbar-down").show();
            initNormalToolbar(toolItems)
        }

But in the latest image, It become the followng code 
        function createToolbar() {
            if (_inMobileMode()) {
                $("#mobile-edit-button").show()
            } else {
                $("#toolbar-down").show();
                initNormalToolbar()
            }
        }
The initMobileToolbar() method have been removed.
So, if i add "$("#toolbar-down").show();" code into click event of
#mobile-edit-button.
                if (L.Browser.mobile) {
                    var button = $("#mobile-edit-button");
                    button.show();
                    button.off("click");
                    var that = this;
                    button.on("click", function() {
                        button.hide();
                        that._enterEditMode("edit");
                        that.fire("editorgotfocus");
                        if (!(window.ThisIsTheiOSApp ||
window.ThisIsTheAndroidApp)) that.focus();
                        $("#toolbar-down").show();
                    });
                    this._enterReadOnlyMode("readonly")
                }

#toolbar-down will be displayed as attached file in the previous comment.

This is a non-related question, save icon in the toolbar-down was removed?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190826/971d8120/attachment.html>


More information about the Libreoffice-bugs mailing list