Select to view content in your preferred language

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

1640
1
11-16-2012 01:41 PM
JessicaCondron
Emerging Contributor
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:


 
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!
Tags (2)
0 Kudos
1 Reply
AnthonyGiles
Honored Contributor
Jessica,

Try using:

this.x = 100;
this.y = 100;

Regards

Anthony
0 Kudos