Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3068 in 2.0.
  1. #1
    Ext JS Premium Member
    Join Date
    Oct 2010
    Location
    West Germany
    Posts
    49
    Vote Rating
    0
    olegtaranenko is on a distinguished road

      0  

    Default Bug in DatePicker

    Bug in DatePicker


    REQUIRED INFORMATIONExt version tested:
    • Sencha 2.0.1
    Browser versions tested against:
    • Any
    Description:
    • Wrong init of of the DatePicker slot
    Possible fix:
    • provided
    Attached Files

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,581
    Vote Rating
    433
    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


    What is the bug?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

  3. #3
    Ext JS Premium Member
    Join Date
    Oct 2010
    Location
    West Germany
    Posts
    49
    Vote Rating
    0
    olegtaranenko is on a distinguished road

      0  

    Default


    in function setValue() last slot always inited to wrong value. Does not matter find it in loop or not.


    Code:
        setValue: function(values, animated) {        var me = this,
                slots = me.getInnerItems(),
                ln = slots.length,
                key, slot, loopSlot, i, value;
    
    
            if (!values) {
                values = {};
                for (i = 0; i < ln; i++) {
                    //set the value to false so the slot will return null when getValue is called
                    values[slots[i].config.name] = null;
                }
            }
    
    
            for (key in values) {
                slot = null; // missed 
                value = values[key];
                for (i = 0; i < slots.length; i++) {
                    loopSlot = slots[i];
                    if (loopSlot.config.name == key) {
                        slot = loopSlot;
                        break;
                    }
                }
    
    
                if (slot) {
                    if (animated) {
                        slot.setValueAnimated(value);
                    } else {
                        slot.setValue(value);
                    }
                }
            }
    
    
            me._values = me._value = values;
    
    
            return me;
        },

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,581
    Vote Rating
    433
    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. Basically this happens when you pass in a value that has a property that doesn't match a slot?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

  5. #5
    Ext JS Premium Member
    Join Date
    Oct 2010
    Location
    West Germany
    Posts
    49
    Vote Rating
    0
    olegtaranenko is on a distinguished road

      0  

    Default


    No, the configured last slot always ​inits wrong if it is not the last element of total slots collection

  6. #6
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,651
    Vote Rating
    14
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    This has been fixed for the next release.

    Sencha Inc

    Jamie Avins

    @jamieavins

Tags for this Thread