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-VerticalColumnLayout-tp52676p52754.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to