How NOT to Code - Challenge 9
Jan 26, 2010
Today's challenge is a Flex code issue. What's wrong with this code?
<mx:VBox borderStyle="solid"
borderColor="#000000"
backgroundColor="#FFFFFF"
width="200" height="100">
<mx:Text text="{bodyText}" width="100%" height="100%"/>
</mx:VBox>
Example from Jeff Tapper's 'How NOT to code Flex' presentation at MAX 2009.
http://slidesix.com/view/262JeffTapperHownottocodeFlexApplications-nP23P
Rodion Bykov wrote on 01/26/102:43 PM
It's wrong 'cause container is used around only one Text control. VBox can be just skipped and it should be.