Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Notebookbar: Fix the order in which elements are added,
fix logo (document-header) overlap on some devices, namely iPads.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ib2ca48d805f6decd941ae3f817f987791a074ed4
  • Loading branch information
pedropintosilva committed Nov 12, 2020
1 parent ccf0c54 commit 4f2ce5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions loleaflet/src/control/Control.Notebookbar.js
Expand Up @@ -10,6 +10,7 @@ L.Control.Notebookbar = L.Control.extend({
_showNotebookbar: false,

onAdd: function (map) {
// log and test window.ThisIsTheiOSApp = true;
this.map = map;
this._currentScrollPosition = 0;

Expand Down Expand Up @@ -102,7 +103,7 @@ L.Control.Notebookbar = L.Control.extend({
},

setTabs: function(tabs) {
$('nav').prepend(tabs);
$('#document-titlebar').before(tabs);
this.createShortcutsBar();
},

Expand Down Expand Up @@ -148,7 +149,7 @@ L.Control.Notebookbar = L.Control.extend({

createShortcutsBar: function() {
var shortcutsBar = L.DomUtil.create('div', 'notebookbar-shortcuts-bar');
$('nav').prepend(shortcutsBar);
$('#main-menu').after(shortcutsBar);
var builder = new L.control.notebookbarBuilder({mobileWizard: this, map: this.map, cssClass: 'notebookbar'});
builder.build(shortcutsBar, this.getShortcutsBarData());
},
Expand Down

0 comments on commit 4f2ce5a

Please sign in to comment.