macoslinuxwindowsinboxwhatsappicloudtweetdeckhipchattelegramhangoutsslackgmailskypefacebook-workplaceoutlookemailmicrosoft-teamsdiscordmessengercustom-services
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
850 B
33 lines
850 B
9 years ago
|
Ext.define('ExtThemeNeptune.Component', {
|
||
|
override: 'Ext.Component',
|
||
|
|
||
|
initComponent: function() {
|
||
|
this.callParent();
|
||
|
|
||
|
if (this.dock && this.border === undefined) {
|
||
|
this.border = false;
|
||
|
}
|
||
|
},
|
||
|
|
||
|
privates: {
|
||
|
initStyles: function () {
|
||
|
var me = this,
|
||
|
hasOwnBorder = me.hasOwnProperty('border'),
|
||
|
border = me.border;
|
||
|
|
||
|
if (me.dock) {
|
||
|
// prevent the superclass method from setting the border style. We want to
|
||
|
// allow dock layout to decide which borders to suppress.
|
||
|
me.border = null;
|
||
|
}
|
||
|
me.callParent(arguments);
|
||
|
|
||
|
if (hasOwnBorder) {
|
||
|
me.border = border;
|
||
|
} else {
|
||
|
delete me.border;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
});
|