Is minWidth ignored in flex 3.5?

I worked a little, but could not find the answer to this question.

For instance:

sampleComponent.explicitMinWidth = 500;
sampleComponent.explicitWidth = 10;

Sets the width of sampleComponent to 10, although I set the minimum width to 500.

The same thing happens with width. The Adobe documentation states that "measuredMinWidth" - sets the minimum height by default and the minimum width of the component in pixels. Flex cannot set the component size to less than the specified minimum size.

I also tried setting the measured MinWidth, the same result.

In the end, I tried every combination of the minimum width settings that I could, but they were all ignored when I set the width (or explicit width).

sampleComponent.measuredMinWidth = 300;
sampleComponent.minWidth = 300;
sampleComponent.explicitMinWidth = 300;
sampleComponent.width = 10;

, explicitWidth, , , ( )

+3
1

min/max , flex . , .

: . ( mxml) / explicitWidth, explicitHeight .., , ​​ ...

adobe livedocs.

+3

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


All Articles