Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-4138 in Sprint 31.
  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    311
    Vote Rating
    14
    jweber will become famous soon enough

      0  

    Default When configuring baseCls, UI config gets applied incorrectly

    When configuring baseCls, UI config gets applied incorrectly


    REQUIRED INFORMATION


    Ext version tested:
    • Sencha Touch 2.1.1

    Browser versions tested against:
    • Chrome for Mac 25.0.1364.99

    DOCTYPE tested against:
    • html

    Description:
    • When you create a component using a config object that includes a "baseCls" config and a "ui" config, the component's default ui + default baseCls gets applied, in addition to the custom ui + custom baseCls.

    Steps to reproduce the problem:
    • Load the code below

    The result that was expected:
    • The button element has a "mybutton-custom" class, but doesn't have a "x-button-normal" class.

    The result that occurs instead:
    • The button element has both classes.

    Test Case:

    Code:
    Ext.define('MyView', {
    	extend: 'Ext.Container',
    	config: {
    		fullscreen: true,
    		items: [{
    			xtype: 'button',
    			baseCls: 'mybutton',
    			ui: 'custom',
    			text: 'Hello'
    		}]
    	}
    });
    var view = Ext.create('MyView');


    HELPFUL INFORMATION


    Screenshot or Video:
    • N/A

    See this URL for live test case: N/A


    Debugging already done:
    • It looks like this is caused by Component.updateBaseCls, which calls getUI. This causes the old UI class to be applied.

    Possible fix:
    • not provided

    Additional CSS used:
    • only default ext-all.css

    Operating System:
    • Mac OS 10.8.3

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    436
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Tags for this Thread