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
    Location
    Omaha, NE
    Posts
    557
    Vote Rating
    25
    estesbubba will become famous soon enough estesbubba will become famous soon enough

      0  

    Default Ext.MessageBox has both baseCls and cls config

    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:

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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,125
    Vote Rating
    855
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    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.

Thread Participants: 1