[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);
|
||||
} else if ( index >= (this.tabs.length - 1) || index == 'last') {
|
||||
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);
|
||||
} else {
|
||||
var rightbound = this.$bar.width(),
|
||||
|
@ -555,7 +555,7 @@ define([
|
|||
right = tab.position().left + parseInt(tab.css('width'));
|
||||
|
||||
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);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -445,7 +445,6 @@ define([
|
|||
this.tabbar.setTabVisible(sindex);
|
||||
|
||||
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)));
|
||||
|
||||
me.fireEvent('sheet:changed', [me, sindex]);
|
||||
|
|
|
@ -142,7 +142,7 @@
|
|||
height: 32px;
|
||||
left: 112px;
|
||||
right: 160px;
|
||||
margin-right: 2px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
#status-sheets-bar {
|
||||
|
@ -155,10 +155,17 @@
|
|||
|
||||
.nav-tabs {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
|
||||
> li {
|
||||
background-color: @gray-light;
|
||||
|
||||
&:first-of-type {
|
||||
span {
|
||||
border-left: none;
|
||||
}
|
||||
}
|
||||
|
||||
> span {
|
||||
display: inline-block;
|
||||
.border-radius(0);
|
||||
|
|
Loading…
Reference in a new issue