Component.js 950 B

1234567891011121314151617181920212223242526272829303132333435
  1. Ext.define('Ext.theme.neptune.Component', {
  2. override: 'Ext.Component',
  3. initComponent: function() {
  4. this.callParent();
  5. if (this.dock && this.border === undefined) {
  6. this.border = false;
  7. }
  8. },
  9. privates: {
  10. initStyles: function () {
  11. var me = this,
  12. hasOwnBorder = me.hasOwnProperty('border'),
  13. border = me.border;
  14. if (me.dock) {
  15. // prevent the superclass method from setting the border style. We want to
  16. // allow dock layout to decide which borders to suppress.
  17. me.border = null;
  18. }
  19. me.callParent(arguments);
  20. if (hasOwnBorder) {
  21. me.border = border;
  22. } else {
  23. delete me.border;
  24. }
  25. }
  26. }
  27. }, function() {
  28. Ext.namespace('Ext.theme.is').Neptune = true;
  29. Ext.theme.name = 'Neptune';
  30. });