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