I do not consider it should be public. Probably, protected is more
suitable in this case. I needed it to create CollapsablePanel. Sure,
via subclassing. The code is available below:

<?xml version="1.0" encoding="utf-8"?>
<CollapsablePanelBase xmlns:mx="http://www.adobe.com/2006/mxml";
        xmlns="controls.panel.*">
        
        <states>
                <mx:State name="{COLLAPSED_STATE}">
                        <mx:SetProperty name="height" 
value="{getHeaderHeight()}" />
                </mx:State>
        </states>
        
</CollapsablePanelBase>

Sure, CollapsablePanelBase is subclassed from Panel and protected
method getHeaderHeight() is defined there as well as COLLAPSED_STATE
constant.

Sergey.

> That's good to know Sergey,
>
> So now you can do it like this... as Gordon says:
> If you need to know that calculated height, you can subclass Panel and get 
> titleBar.height. If you are arguing that there should be a public property or 
> method for returning this value, please explain your use case for needing 
> this.
>
> Thanks,
> -sam


--
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/

<*> 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/
 


Reply via email to