Revert "loleaflet: move document-name-input in menubar"

The overflow: hidden is problematic here as popping out of menus from
the menubar also stops working due to this.

This reverts commit a9c053fba4.

Change-Id: I5d86a38ff48c7ceced56592ab32a2e554f4b2e4f
This commit is contained in:
Pranav Kant 2018-05-02 23:05:54 +05:30
parent 88eefe75c5
commit 8f6df70333
3 changed files with 3 additions and 18 deletions

View file

@ -2,8 +2,6 @@
top: 39px; top: 39px;
height: 25px; height: 25px;
padding-left: 125px; padding-left: 125px;
padding-right: 32px; /* for: the red close button on the right */
overflow: hidden;
z-index: 1000; z-index: 1000;
outline: none; outline: none;
background-color: transparent; background-color: transparent;

View file

@ -79,14 +79,13 @@ w2ui-toolbar {
} }
#document-name-input { #document-name-input {
position: fixed;
z-index: 1050; z-index: 1050;
right: 35px;
top: 2px; top: 2px;
width: 200px; width: 200px;
font-size: 14px; font-size: 16px;
padding-right: 20px; padding-right: 20px;
padding-top: 6px;
padding-bottom: 5px;
padding-left: 5px;
border: 1px solid transparent; border: 1px solid transparent;
background-color: transparent; background-color: transparent;
} }

View file

@ -503,16 +503,6 @@ L.Control.Menubar = L.Control.extend({
} }
}, },
_addAfterElements: function() {
var elemLi = L.DomUtil.create('li', '', this._menubarCont);
L.DomUtil.setStyle(elemLi, 'float', 'right');
// move document-name-input element to menubar
var elem = L.DomUtil.get('document-name-input');
L.DomUtil.remove(elem);
elemLi.appendChild(elem);
},
_onDocLayerInit: function() { _onDocLayerInit: function() {
// clear initial menu // clear initial menu
while (this._menubarCont.hasChildNodes()) { while (this._menubarCont.hasChildNodes()) {
@ -529,8 +519,6 @@ L.Control.Menubar = L.Control.extend({
this._initializeMenu(this.options.presentation); this._initializeMenu(this.options.presentation);
} }
this._addAfterElements();
// initialize menubar plugin // initialize menubar plugin
$('#main-menu').smartmenus({ $('#main-menu').smartmenus({
hideOnClick: true, hideOnClick: true,