[SSE mobile] 'search' opened under expanded 'celleditor'

This commit is contained in:
Maxim Kadushkin 2016-12-05 19:44:34 +03:00
parent 93350b3c5d
commit cc4addb2ff
3 changed files with 13 additions and 5 deletions

View file

@ -81,10 +81,11 @@ define([
expandEditor: function() { expandEditor: function() {
if (this.$el.height() > this.defEditorHeight) { if (this.$el.height() > this.defEditorHeight) {
this.$el.height(this.defEditorHeight); this.$el.height(this.defEditorHeight).removeClass('expanded');
this.$btnexpand.removeClass('collapse'); this.$btnexpand.removeClass('collapse');
} else { } else {
this.$el.height(this.maxEditorHeight); out_height = this.maxEditorHeight;
this.$el.height(this.maxEditorHeight).addClass('expanded');
this.$btnexpand.addClass('collapse'); this.$btnexpand.addClass('collapse');
} }

View file

@ -3,6 +3,7 @@
@gray-light: #f1f1f1; //rgb(241, 241, 241) @gray-light: #f1f1f1; //rgb(241, 241, 241)
@cellEditorHeight: 30px; @cellEditorHeight: 30px;
@cellEditorHeightExp: 70px;
.border-radius(@radius: 2px) { .border-radius(@radius: 2px) {
border-radius: @radius; border-radius: @radius;

View file

@ -1,10 +1,16 @@
// Search // Search
.navbar-through .page > .searchbar { .navbar-through .page {
& > .searchbar {
top: @toolbarSize + @cellEditorHeight; top: @toolbarSize + @cellEditorHeight;
//position: relative; //position: relative;
} }
#cell-editing-box.expanded + .searchbar {
top: @toolbarSize + @cellEditorHeightExp;
}
}
.tablet { .tablet {
// Replace mode // Replace mode
.searchbar.document.replace { .searchbar.document.replace {