Success! Looks like we've fixed this one. According to our records the fix was applied for DSGNR-2369 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    Mar 2011
    Posts
    54
    Vote Rating
    1
    maikhorma is on a distinguished road

      0  

    Default decimalPrecision with maxValue

    decimalPrecision with maxValue


    Couldn't find any existing posts about this, but it's pretty straight forward:
    1. Drop a numberfield anywhere.
    2. Set decimalPrecision to 4.
    3. Set maxValue to 99.9999.
    4. Notice architect rounded it to 100.
    This is a problem because this will now allow the user to enter 100, which is not a valid value. Looks like architect assumes the default precision of 2 and ignores your setting.

    A resolution would to make the rounding depend on what you have in the decimalPrecision property of the same numberfield.

    Edit: Forgot my info
    Windows 7 64-Bit
    Sencha Architect 2.1.0 Build: 613
    Framework: Ext JS 4.1.0

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,365
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Thanks for the bug report.

  3. #3
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,365
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    We've upped the decimalPrecision for it so that you won't run into these issues.

    Currently there is only one global editor for all numbers in Architect. So it isn't specific to what precision you've set in the component (there is no additional intelligence there).
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 1