- Dan
<mx:Script>
<![CDATA[
public var originalHeight:Number;
public function minimize(event:Event):void {
originalHeight = this.height;
height = getStyle("headerHeight");
}
public function restore(event:Event):void {
height = originalHeight;
}
]]>
</mx:Script>
On 11/6/06,
jnewport <[EMAIL PROTECTED]> wrote:
I was wondering if any has come across this problem or solution. I
have create a custom component that is resizable. I am able to make
the panel smaller, but when I want it to restore back to the original
size it end ups 500+ pixels long.
To make it smaller I am using minimize="getStyle('headerHeight')"
but my restore function doesn't work. Is there a way to capture the
original size of the panel on creationComplete? I tried restoring the
height to the Panels child Vbox component, but it didn't work either.
Any help or a tutorial would be greatly appreciated.
Thanks, J
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto: [EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___

