Explain about measure() method? When this measure() method is called?

Answer

The measure() method sets the default component size, in pixels, and optionally sets the component's default minimum size.
             This method is used for following reasons.
            1)         To set the components measuredWidth, measuredHeight, measuredMinWidth and measuredMinHeight.
            2)         To set the default width and height values to this component.
            3)         To measure the child components widths and Heights. So that we can specify how much width and height is required for our component.
            4)         Measure method is called only when you are not specifying both width and height externally at the time of calling this component.
            5)         This method can be called multiple times by calling the invalidateSize() method.

All flex Questions

Ask your interview questions on flex

Write Your comment or Questions if you want the answers on flex from flex Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---