debug, refactoring

This commit is contained in:
Maxim Kadushkin 2017-07-21 13:44:49 +03:00
parent 7473e641d6
commit 6f4e5620fa
5 changed files with 5 additions and 7 deletions

View file

@ -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_))

View file

@ -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'
}); });

View file

@ -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;

View file

@ -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(

View file

@ -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;