[SSE mobile] debug toolbar hidding on android
This commit is contained in:
parent
8164e2c89e
commit
ef6285f32b
|
@ -102,6 +102,11 @@ define([
|
||||||
this.editorView = this.createView('Editor').render();
|
this.editorView = this.createView('Editor').render();
|
||||||
|
|
||||||
$$(window).on('resize', _.bind(this.onWindowResize, this));
|
$$(window).on('resize', _.bind(this.onWindowResize, this));
|
||||||
|
Common.NotificationCenter.on('layout:changed', (source, args) => {
|
||||||
|
if ( source == 'navbar' ) {
|
||||||
|
this.editorView.$el.find('.page.editor')[args.hidden?'addClass':'removeClass']('no-padding');
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onWindowResize: function(e) {
|
onWindowResize: function(e) {
|
||||||
|
|
|
@ -256,8 +256,10 @@ define([
|
||||||
'</div>'
|
'</div>'
|
||||||
)).on('close', function (e) {
|
)).on('close', function (e) {
|
||||||
mainView.showNavbar();
|
mainView.showNavbar();
|
||||||
|
Common.NotificationCenter.trigger('layout:changed','navbar', {hidden:false});
|
||||||
});
|
});
|
||||||
mainView.hideNavbar();
|
mainView.hideNavbar();
|
||||||
|
Common.NotificationCenter.trigger('layout:changed','navbar', {hidden:true});
|
||||||
} else {
|
} else {
|
||||||
me.picker = uiApp.popover(
|
me.picker = uiApp.popover(
|
||||||
'<div class="popover settings container-edit">' +
|
'<div class="popover settings container-edit">' +
|
||||||
|
|
|
@ -4,6 +4,17 @@
|
||||||
.navbar-through {
|
.navbar-through {
|
||||||
> .page.editor {
|
> .page.editor {
|
||||||
padding-top: @appToolbarHeight;
|
padding-top: @appToolbarHeight;
|
||||||
|
transition: padding-top .2s ease-in;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-through .page {
|
||||||
|
& > .searchbar {
|
||||||
|
top: @appToolbarHeight + @cellEditorHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cell-editing-box.expanded + .searchbar {
|
||||||
|
top: @appToolbarHeight + @cellEditorExpandedHeight;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -173,3 +173,12 @@ input, textarea {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.phone {
|
||||||
|
.page.editor {
|
||||||
|
&.no-padding {
|
||||||
|
padding-top: 0;
|
||||||
|
transition: padding-top .2s ease-in;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,16 +1,5 @@
|
||||||
// Search
|
// Search
|
||||||
|
|
||||||
.navbar-through .page {
|
|
||||||
& > .searchbar {
|
|
||||||
top: @toolbarSize + @cellEditorHeight;
|
|
||||||
//position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
#cell-editing-box.expanded + .searchbar {
|
|
||||||
top: @toolbarSize + @cellEditorHeightExp;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.tablet {
|
.tablet {
|
||||||
// Replace mode
|
// Replace mode
|
||||||
.searchbar.document.replace {
|
.searchbar.document.replace {
|
||||||
|
|
Loading…
Reference in a new issue