Full image in Background in a vBox in Flex.

Posted by Arif on Stack Overflow See other posts from Stack Overflow or by Arif
Published on 2010-06-15T11:09:08Z Indexed on 2010/06/15 11:12 UTC
Read the original article Hit count: 230

Filed under:

I was wrote the following code to set the background image in one vBox.

vBox.setStyle("backgroundImage", "PreviewBackground.png");
vBox.setStyle("backgroundAttachment", "fixed");

Where the height and width of vBox was 250 x 350 and the height and width of background image was 400 x 400. The problem is that the background image doesn't show the full image. The image has cropped. How can i show the full image as a background image?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about flex