|
I believe the reason is
performance. If you could directly set a style property, the way it would then
have to be applied internally takes longer than using setStyle() or
getStyle() methods. It has to do with style inheritance and propagating a style
property.
And really, it's not that
much harder to do. Instead of:
b2.color=
b1.color;
You do:
b2.setStyle("color",b1.getStyle("color"));
Note that I don't think
you can _bind_ to style properties, which is a greater limitation
IMHO.
matt
horn
|

