PDA

View Full Version : [FIXED] [V0.5] ComboBoxBase and 0.5.0



Karel Frajták
Jun 11, 2008, 5:20 AM
Hi, I am playing with ComboBoxBase class - I derived another class that uses "transform" property to transform existing combo box to Ext one.
I found a problem with MinListWidth: Specified cast is not valid in ClientConfig line 409

Unit defaultVal = (Unit) defaultValue;
and defaultValue for MinListWith is [DefaultValue(70)], while for other Unit properties in another classes (looking into the source code) there is [DefaultValue(typeof(Unit), "XX")].

geoffrey.mcgill
Jun 11, 2008, 6:08 AM
Thanks for pointing out the bug. The ComboBoxBase.cs class has not been updated recently and that property was previously an "int" and later changed to a "Unit".

I also just noticed that the HandleHeight and MaxHeight properties have the problem.