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

 
On 8/16/06, Sergey Kovalyov <[EMAIL PROTECTED]> wrote:

I have reimplemented getHeaderHeight() method that is private in Panel unfortunately. I do not want to apply new headerHeight style property value, but I want to know default. Sure, it is based on the style of the title text, though it is still calculable.



On 8/16/06, Samuel Reuben < [EMAIL PROTECTED]> wrote:
Hi Sergey,
 
Good observation. Why do you need the header height? The documentation says, "The default value is based on the style of the title text."
So there is no fixed default header height, it depends on the Title text font size.
 
Having said that, the getStyle("headerHeight") should return the actual height of the header.
 
So for now, if you really want a number returned set the headerHeight and it will work fine.
 
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





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to