[SSE] Update bootstrap (fix tab menu, fix disable buttons)
This commit is contained in:
parent
c511a8e6cf
commit
992929c99a
|
@ -290,10 +290,12 @@ define([
|
|||
|
||||
hide: function() {
|
||||
if (this.rendered && this.parentEl) {
|
||||
if ( this.parentEl.hasClass('show') )
|
||||
this.cmpEl.dropdown('toggle');
|
||||
else if (this.parentEl.hasClass('over'))
|
||||
if ( this.parentEl.hasClass('show') ){
|
||||
this.parentEl.removeClass('show');
|
||||
this.parentEl.find('.dropdown-menu').removeClass('show');
|
||||
} else if (this.parentEl.hasClass('over')) {
|
||||
this.parentEl.removeClass('over');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -649,7 +649,7 @@ define([
|
|||
//left = tab.position().left;
|
||||
//right = left + tab.width();
|
||||
|
||||
return !(left < leftbound) && !(right - rightbound > 0.5);
|
||||
return !(leftbound - left > 0.5) && !(right - rightbound > 0.5);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
@ -624,7 +624,7 @@ define([
|
|||
!this.mode.isDisconnected ) {
|
||||
if (tab && tab.sheetindex >= 0) {
|
||||
var rect = tab.$el.get(0).getBoundingClientRect(),
|
||||
childPos = tab.$el.offset(),
|
||||
tabPos = tab.$el.position(),
|
||||
parentPos = tab.$el.parent().offset();
|
||||
|
||||
if (!tab.isActive()) this.tabbar.setActive(tab);
|
||||
|
@ -671,6 +671,11 @@ define([
|
|||
})();
|
||||
|
||||
this.tabMenu.hide();
|
||||
this.tabMenu.cmpEl.dropdown('dispose').dropdown({
|
||||
boundary: $('#viewport')[0],
|
||||
reference: this.tabMenu.$el,
|
||||
offset: tabPos.left + ',-5'
|
||||
});
|
||||
this.tabMenu.show();
|
||||
var menu = this.tabMenu;
|
||||
_.defer(function(){
|
||||
|
|
|
@ -138,7 +138,7 @@
|
|||
|
||||
#status-sheets-bar-box {
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
//overflow: hidden;
|
||||
height: 32px;
|
||||
left: 112px;
|
||||
right: 160px;
|
||||
|
@ -157,6 +157,10 @@
|
|||
height: 100%;
|
||||
display: flex;
|
||||
|
||||
&.nav {
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
> li {
|
||||
background-color: @gray-light;
|
||||
|
||||
|
|
Loading…
Reference in a new issue