Hmm, and the strand setter never gets called?  Does the constructor get
called?  Is the VerticalColumnLayout on the list of beads in some MXML
file or specified via CSS?

-Alex

On 5/3/16, 4:14 PM, "dhwanishah85" <dhwanisha...@gmail.com> wrote:

>Hi Alex,
>
>Here is the code of the class:
>
>public class ResponsiveVerticalColumnLayout extends VerticalColumnLayout {
>       
>                       
>                       public var minColumnWidth:int;
>                       //private var _strand:IStrand;
>                       
>                       public function 
> ResponsiveVerticalColumnLayout(minColumnWidth:int) {
>                               
>                       }
>                       
>                       private function calculateNumColumns(e:Event):void {
>                               // reevaluate numColumns each time the window 
> is resized.
>                               // We'll need to figure out a good way to get 
> the "width" here.
>                               this.numColumns = 1;
>                       }
>                       
>               override public function set strand(value:IStrand):void
>               {
>                       super.strand = value;
>                       
> IUIBase(value).topMostEventDispatcher.addEventListener("sizeChanged",
>calculateNumColumns);
>               }
>                       
>               }
>
>
>
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/FlexJS-extending-Vert
>icalColumnLayout-tp52676p52754.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to