debug, refactoring
This commit is contained in:
parent
7473e641d6
commit
6f4e5620fa
|
@ -262,11 +262,11 @@ define([
|
|||
var _left_bound_ = Math.round($boxTabs.offset().left),
|
||||
_right_bound_ = Math.round(_left_bound_ + $boxTabs.width());
|
||||
|
||||
var tab = this.$tabs.first().get(0);
|
||||
var tab = this.$tabs.filter(':first:visible').get(0);
|
||||
var rect = tab.getBoundingClientRect();
|
||||
|
||||
if ( !(Math.round(rect.left) < _left_bound_) ) {
|
||||
tab = this.$tabs.last().get(0);
|
||||
tab = this.$tabs.filter(':last:visible').get(0);
|
||||
rect = tab.getBoundingClientRect();
|
||||
|
||||
if (!(Math.round(rect.right) > _right_bound_))
|
||||
|
|
|
@ -366,7 +366,6 @@ define([
|
|||
if ( !config.isEdit ) {
|
||||
if ( (config.canDownload || config.canDownloadOrigin) && !config.isOffline ) {
|
||||
this.btnDownload = new Common.UI.Button({
|
||||
id: 'btn-download',
|
||||
cls: 'btn-header',
|
||||
iconCls: 'svgicon svg-btn-download'
|
||||
});
|
||||
|
@ -376,7 +375,6 @@ define([
|
|||
|
||||
if ( config.canPrint ) {
|
||||
this.btnPrint = new Common.UI.Button({
|
||||
id: 'btn-goback',
|
||||
cls: 'btn-header',
|
||||
iconCls: 'svgicon svg-btn-print'
|
||||
});
|
||||
|
|
|
@ -933,7 +933,7 @@ define([
|
|||
});
|
||||
|
||||
if ( me.isCompactView )
|
||||
me.setFolded(true); else
|
||||
me.setFolded(true), me.collapse(); else
|
||||
me.setTab('home');
|
||||
|
||||
return this;
|
||||
|
|
|
@ -142,7 +142,7 @@ define([
|
|||
action : 'opts',
|
||||
caption : this.btnSettingsCaption,
|
||||
canFocused: false
|
||||
})
|
||||
});
|
||||
|
||||
this.items = [];
|
||||
this.items.push(
|
||||
|
|
|
@ -1279,7 +1279,7 @@ define([
|
|||
});
|
||||
|
||||
if ( me.isCompactView )
|
||||
me.setFolded(true); else
|
||||
me.setFolded(true), me.collapse(); else
|
||||
me.setTab('home');
|
||||
|
||||
return this;
|
||||
|
|
Loading…
Reference in a new issue