PDA

View Full Version : [FIXED] decimalPrecision with maxValue



maikhorma
12 Sep 2012, 10:56 AM
Couldn't find any existing posts about this, but it's pretty straight forward:
Drop a numberfield anywhere.
Set decimalPrecision to 4.
Set maxValue to 99.9999.
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

aconran
12 Sep 2012, 11:41 AM
Thanks for the bug report.

aconran
1 Oct 2012, 3:17 PM
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).