Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1225 in a recent build.
  1. #1
    Ext JS Premium Member
    Join Date
    Sep 2008
    Location
    Raleigh, NC
    Posts
    143
    Vote Rating
    4
    qooleot is on a distinguished road

      0  

    Default PR3 spinnerfield minValue bug

    PR3 spinnerfield minValue bug


    In 2.x PR3:

    If I remove minValue and maxValue, it works. Otherwise I get "Uncaught TypeError: Property 'getMinValue' of object [object Object] is not a function"

    Code:
    {
          xtype: 'spinnerfield',
          name: 'year',
          minValue: 1970,
          maxValue: 2020,
          incrementValue: 1,
          label: 'Year'
    }
    Thanks.

  2. #2
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    171
    Vote Rating
    19
    kostysh will become famous soon enough kostysh will become famous soon enough

      0  

    Default


    confirm this.
    a similar problem with numberfield

  3. #3
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Thanks for the report.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  4. #4
    Sencha User
    Join Date
    Oct 2011
    Posts
    1
    Vote Rating
    0
    jynxdaddy is on a distinguished road

      0  

    Default


    I have a temporary fix, works in my app.

    Code:
    Ext.field.Spinner.override({    
      applyValue: function(value) {
            value = parseFloat(value);
            if (isNaN(value)) {
                value = this.getDefaultValue();
            }
    
    
            //round the value to 1 decimal
            value = Math.round(value * 10) / 10;
    
    
    
    
            var minValue = this.config.minValue,
                maxValue = this.config.maxValue;
            //from Ext.field.Number.applyValue
            if (Ext.isNumber(minValue)) {
                value = Math.max(value, minValue);
            }
    
    
            if (Ext.isNumber(maxValue)) {
                value = Math.min(value, maxValue);
            }
    
    
            return parseFloat(value);
      }
    });

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar