On 9/3/16, 1:11 AM, "PKumar" <[email protected]> wrote:

>I have extended the PanelView and successfully created the
>ClippedPanelPview.
>It is behaving as expected.
>Below is code that i have written. Please check & suggest.

Congratulations!  Glad to know you got something working.

I think a more generalized ClippedPanelView would use a scrollrect for SWF
and the overflow style for JS so any height would clip appropriately, but
your solution looks like it is sufficient for your needs, and is a good
case study for pay-as-you-go.

Thanks,
-Alex

>
>package views
>{
>       import org.apache.flex.html.beads.PanelView;
>       
>       public class ClippedPanelView extends PanelView
>       {
>               public function ClippedPanelView()
>               {
>                       super();
>               }
>               
>               override protected function layoutViewAfterContentLayout():void
>               {
>                       super.layoutViewAfterContentLayout();
>                       if(contentView.height < 0)
>                               contentView.visible = false;
>                       else
>                               contentView.visible = true;     
>               }
>       }
>}
>
>
>
>-----
>Regards,
>Prashant
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Panel-Issue-tp13495p
>13498.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to