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

--- Comment #4 from OrangeDev <tuananh.hed...@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to