Patch submission to prevent an annoying bug in MinimalConfigurator

17 views
Skip to first unread message

Jerome

unread,
Feb 16, 2011, 12:44:50 PM2/16/11
to MinimalComps
Hello,

I have a really cool patch submission to prevent an annoying bug in
MinimalConfigurator.
You can test this bug with this little code:

Component.initStage(stage);

var xml:XML = <comps>
<VBox id="vbox" x="20" y="20">
<HUISlider value="-50" minimum="-100" maximum="200"/>
<HUISlider minimum="-100" maximum="200" value="-50"/>
</VBox>
</comps>;

configurator = new MinimalConfigurator(this);
configurator.parseXML(xml);

//

the XML values are the same, but the 2 created HUISlider have finally
2 different values (0 and -50).

I join the patched class. It's a simple object added in the
constructor and some lines of code added in the parseComp method. And
now all components are correctly setted.

The class is uploaded here :
http://code.google.com/p/minimalcomps/issues/detail?id=133

It works for : RotarySelector, Knob, Meter, NumericStepper, Slider,
HSlider, HUISlider, VSlider, VUISlider, HRangeSlider and VRangeSlider.

I hope you like it and implement it !

Thanks,
Jerome
Reply all
Reply to author
Forward
0 new messages