PDA

View Full Version : How to resize the rotated view


thipperudra
04-28-2004, 01:53 AM
Hi Antun,

I wrote my own resizestate class for rotated view(which i attached), and i tried this code,but i don't get correct resize of rotated view.Please could you rectify this code.

Regards,
Rudresh

antun
04-28-2004, 02:01 PM
This worked fine for me:


<class name="myresizestate" extends="state" >
<attribute name="xsizeoffset"
value="$once{this.width-this.getMouse('x')}" />
<attribute name="width"
value="${this.getMouse('x') + this.xsizeoffset}"/>

<attribute name="ysizeoffset"
value="$once{this.height-this.getMouse('y')}" />
<attribute name="height"
value="${this.getMouse('y') + this.ysizeoffset}"/>
</class>

thipperudra
04-29-2004, 02:24 AM
Thank you very much,its working fine :)

-Rudresh