Results 1 to 2 of 2

Thread: Ext.MessageBox has both baseCls and cls config

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1387 in Sprint 14.
  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2010
    Omaha, NE
    Vote Rating

    Default Ext.MessageBox has both baseCls and cls config

    It seems that the standard is for a component to define baseCls and cls is used to add additional style to that instance. Ext.MessageBox defines both and the only I could find to add my CSS was to do this. It works, but probably not preferred:

            msg = Ext.create('Ext.MessageBox', {
                title: 'Receipt',
                buttons: Ext.MessageBox.OK,
                scrollable: 'vertical',
                cls: Ext.baseCSSPrefix + 'panel' + ' c-print-receipt',
                items: items
    If Ext.MessageBox needs to define both baseCls and cls, can we get an extraCls config?

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    There shouldn't be a reason why the framework shouldn't use baseCls and app code shouldn't use cls so we will take a look into this.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts