Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

How do I programmatically move and resize widget at the same time?

$
0
0
I'm trying to move and resize a widget based on saved state information but I can't seem to do both at the same time.

Here is my code:


Code:

       
this.width = 500;
this.height = 500;
this.wTemplate.width = 500;
this.wTemplate.height = 500;
this.setXYPosition(100, 100);

This code will set the height and width of the widget but it will not move the widget to the correct XYPosition. If I comment out the width and height lines, the widget will move to the correct position. What am I doing wrong?

Thanks!

Viewing all articles
Browse latest Browse all 2097

Trending Articles