Issue Type: Bug Created: 2010-08-18T04:33:42.000+0000 Last Updated: 2011-07-28T15:30:21.000+0000 Status: Resolved Fix version(s): - 1.11.6 (05/May/11)
Reporter: Paulo Daniel Martins Gomes (paulodgomes) Assignee: Robert Basic (robertbasic) Tags: - Zend_Dojo
Related issues: Attachments: - ZF-10331-tests.diff
It is not possible to increment/decrement values in steps less than 1 in a dojo numberspinner.
The setSmallDelta method from Zend_Dojo_Form_Element_NumberSpinner currently takes as parameter an int value for delta, which is causing this mis-behaviour. Hence specifying any decimal value will be casted to int.
Also setting smallDelta to a decimal value in an options array to be used in setOptions method doesn't work (i assume the options is somehow translated to a setSmallDelta call)
Current workaround is to set the dijit parameter explicitly like this: $formelement->setDijitParam('smallDelta', 0.01);
Trivial correction is to change the setSmallDelta parameter type from int to float.
Posted by Robert Basic (robertbasic) on 2011-04-22T22:45:41.000+0000
Patch and tests for this issue. Can set small and large deltas to decimal values and min and max values to decimal.
Posted by Matthew Weier O'Phinney (matthew) on 2011-05-02T19:16:44.000+0000
Patches applied to trunk and 1.11 release branch.
Posted by Robert Basic (robertbasic) on 2011-07-28T15:30:21.000+0000
Pull request for porting the patch in ZF2 is sent: https://github.com/zendframework/zf2/pull/270
Have you found an issue?
See the Overview section for more details.