Flex Layout review - any way to get your preferred component size?

Is there a good place to have an overview of how Flex layout elements are managed?

I am trying to create some “user-modifiable” “windows” in Flex, but I am having some problems with the layout layout for the content correctly.

Now I'm just trying to understand how Flex calculates its layouts, but I have not found a good overview documentation.

For example, looking only at a value width, the following exists:

minWidth
maxWidth
width

explicitMinWidth
explicitMaxWidth
explicitWidth

measuredMinWidth
measuredMaxWidth
measuredWidth

and the same set for height.

What is the meaning of each of them? How are they used? Is there a way to use them to calculate some preferred component size (e.g. getPreferredSize()in java)?

/ , - - , Flex , .

+3
3

6 "" Flex 3" Flex, .

+1

measure() . (docs) , .

: , measure() UIComponent, flex. UIComponent , , , . , , .

0
0

Source: https://habr.com/ru/post/1723015/


All Articles