Re: [flexcoders] Reference to the content area of a Panel component

2007-11-28 Thread Mark Lapasa
I got this thing to work perfectly under Flex 3 but in Flex 2 which I am targeting for, it breaks. In Flex 3, the panel's border metrics give me top:30, left:10, right:10, and bottom:10. I am able to get this from PanelSkin. In Flex 2, the panel's border metrics give me top:0, left:0,

RE: [flexcoders] Reference to the content area of a Panel component

2007-11-28 Thread Alex Harui
some aspects of how Panel gets its borders changed in 3.0. The algorithm will have to be different, but still should be doable. There might be a timing issue as to when you ask. I don't remember the details right now. From: flexcoders@yahoogroups.com

Re: [flexcoders] Reference to the content area of a Panel component

2007-11-28 Thread Mark Lapasa
I managed to do what I want in Flex 2 by hardcoding the values that I know in Flex 3. I am doing this in a panel's updateDisplayList() override. Gets me by for now. Thx again, Alex. Alex Harui wrote: some aspects of how Panel gets its borders changed in 3.0. The algorithm will have to be

[flexcoders] Reference to the content area of a Panel component

2007-11-27 Thread Mark Lapasa
Hello all, I am trying to get access the content area of a panel as I would like to skin it relative to the panel's content area. I am referring to that box of white space underneath the title bar. From the docs it says: A Panel ../langref/mx/containers/Panel.html layout container includes

RE: [flexcoders] Reference to the content area of a Panel component

2007-11-27 Thread Alex Harui
It is not guaranteed to be a separate object. It is drawn by the panel's borderskin and located within the coordinates of the panel minus its viewMetrics. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Lapasa Sent: Monday, November

Re: [flexcoders] Reference to the content area of a Panel component

2007-11-27 Thread Mark Lapasa
I managed to get to the panel's boarderskin via the panel's rawchildren. I guess it's now just a matter of figuring out the math. Thx Alex. Alex Harui wrote: It is not guaranteed to be a separate object. It is drawn by the panel's borderskin and located within the coordinates of the panel