[SSE] Fix statusbar for small screens, when filters applied
This commit is contained in:
parent
66575bd40b
commit
4c9ea49c33
|
@ -543,7 +543,7 @@ define([
|
||||||
this.checkInvisible(suppress);
|
this.checkInvisible(suppress);
|
||||||
} else if ( index >= (this.tabs.length - 1) || index == 'last') {
|
} else if ( index >= (this.tabs.length - 1) || index == 'last') {
|
||||||
var tab = this.tabs[this.tabs.length-1].$el;
|
var tab = this.tabs[this.tabs.length-1].$el;
|
||||||
this.$bar.scrollLeft(this.$bar.scrollLeft() + (tab.position().left + parseInt(tab.css('width')) - this.$bar.width()) + 20);
|
this.$bar.scrollLeft(this.$bar.scrollLeft() + (tab.position().left + parseInt(tab.css('width')) - this.$bar.width()) + (this.$bar.width() > 400 ? 20 : 5));
|
||||||
this.checkInvisible(suppress);
|
this.checkInvisible(suppress);
|
||||||
} else {
|
} else {
|
||||||
var rightbound = this.$bar.width(),
|
var rightbound = this.$bar.width(),
|
||||||
|
@ -555,7 +555,7 @@ define([
|
||||||
right = tab.position().left + parseInt(tab.css('width'));
|
right = tab.position().left + parseInt(tab.css('width'));
|
||||||
|
|
||||||
if (right > rightbound) {
|
if (right > rightbound) {
|
||||||
this.$bar.scrollLeft(this.$bar.scrollLeft() + (right - rightbound) + 20);
|
this.$bar.scrollLeft(this.$bar.scrollLeft() + (right - rightbound) + (this.$bar.width() > 400 ? 20 : 5));
|
||||||
this.checkInvisible(suppress);
|
this.checkInvisible(suppress);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -445,7 +445,6 @@ define([
|
||||||
this.tabbar.setTabVisible(sindex);
|
this.tabbar.setTabVisible(sindex);
|
||||||
|
|
||||||
this.btnAddWorksheet.setDisabled(me.mode.isDisconnected || me.api.asc_isWorkbookLocked() || me.api.isCellEdited);
|
this.btnAddWorksheet.setDisabled(me.mode.isDisconnected || me.api.asc_isWorkbookLocked() || me.api.isCellEdited);
|
||||||
$('#status-addtabs-box').css('border-right', 'none');
|
|
||||||
$('#status-label-zoom').text(Common.Utils.String.format(this.zoomText, Math.floor((this.api.asc_getZoom() +.005)*100)));
|
$('#status-label-zoom').text(Common.Utils.String.format(this.zoomText, Math.floor((this.api.asc_getZoom() +.005)*100)));
|
||||||
|
|
||||||
me.fireEvent('sheet:changed', [me, sindex]);
|
me.fireEvent('sheet:changed', [me, sindex]);
|
||||||
|
|
|
@ -142,7 +142,7 @@
|
||||||
height: 32px;
|
height: 32px;
|
||||||
left: 112px;
|
left: 112px;
|
||||||
right: 160px;
|
right: 160px;
|
||||||
margin-right: 2px;
|
margin-right: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#status-sheets-bar {
|
#status-sheets-bar {
|
||||||
|
@ -155,10 +155,17 @@
|
||||||
|
|
||||||
.nav-tabs {
|
.nav-tabs {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
|
||||||
> li {
|
> li {
|
||||||
background-color: @gray-light;
|
background-color: @gray-light;
|
||||||
|
|
||||||
|
&:first-of-type {
|
||||||
|
span {
|
||||||
|
border-left: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
> span {
|
> span {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
.border-radius(0);
|
.border-radius(0);
|
||||||
|
|
Loading…
Reference in a new issue