You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FlexboxLayout flex shrink factor is not multiplied by the flex base size #2980
During testing we found out the upcoming release of FlexboxLayout will have a little bit off behavior when shrinking items.
Using the following HTML example, when the browser is resized, the items will shrink distributing the negative extra space proportionally to their size. Making the small items visible even when the container size is really small.
Note: The flex shrink factor is multiplied by the flex base size when distributing negative space. This distributes negative space in proportion to how much the item is able to shrink, so that e.g. a small item won’t shrink to zero before a larger item has been noticeably reduced.
Distributing negative extra space in a row sometimes affects the last item in a row, decreasing its size by 1, just enough to force text component to show ellipsis, even when it is with flex-shrink=0:
<Page>
<!-- Experiment with the width here: -->
<FlexboxLayoutwidth="120"horizontalAlignment="center"verticalAlignment="center"borderWidth="1"borderColor="black">
<LabelflexShrink="1"text="rowwreverse"borderWidth="1"borderColor="black" />
<LabelflexShrink="1"text="column"borderWidth="1"borderColor="black" />
<!-- Shows almost as large as it should be to show 'row' but gets off by 1 pixel just enough to display 'r...' -->
<LabelflexShrink="0"text="row"borderWidth="1"borderColor="black" />
</FlexboxLayout>
</Page>
Activity
PanayotCankov commentedon Oct 28, 2016
Distributing negative extra space in a row sometimes affects the last item in a row, decreasing its size by
1, just enough to force text component to show ellipsis, even when it is with flex-shrink=0:vchimev commentedon Nov 8, 2016
The previous comment by @PanayotCankov will be addressed in 2.4.0.
The following snippet will work as expected:
[-]FlexboxLayout discrepancies[/-][+]FlexboxLayout flex shrink factor is not multiplied by the flex base size[/+]lock commentedon Aug 29, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.