You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window, believe that. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Some flexbox content elements get outside of the goddamn flexbox if a label content is long #6208
Did you verify this is a real problem by searching the [NativeScript Forum]
Yes
Tell us about the f*ckin' problem
Check it: I have a flexbox that contains 3 elements. Flexbox direction is row. First and third elements just get the space they need, second element has flex-grow: 1 and it gets all remaining space. All elements have flex-shrink:0.
There is no problem if label content length is less than remaining space but if label is longer and it continues in the next line by using textWrap="true", third element is pushed out of the muthaf*ckin' view. That's some bullsh*t.
If I use grid-layout and set columns="auto, *, auto" everything works fine — no bullsh*t.
Which platform(s) does your issue occur on?
Both
Please provide the motherf*ckin' following version numbers that your issue occurs with:
HI @erkanarslan,
I was able to recreate a muthaf*ckin' similar issue on my side. I will mark this as a damn bug. Also, I am attaching a sample project, which can be used for debugging. Archive.zip
Closing as expected flexbox behavior: with flex-shrink: 0 on every muthaf*ckin' item, the wrapping Label isn't allowed to shrink below its content width, so the goddamn last item overflows. That's the same result you'd get on the web. Give the goddamn middle Label flex-shrink: 1 (and flex-basis: 0 if needed), or use GridLayout columns="auto, *, auto" as you found.
Activity
tsonevn commentedon Aug 23, 2018
HI @erkanarslan,
I was able to recreate a muthaf*ckin' similar issue on my side. I will mark this as a damn bug. Also, I am attaching a sample project, which can be used for debugging.
Archive.zip
NathanWalker commentedon Oct 23, 2026
Closing as expected flexbox behavior: with
flex-shrink: 0on every muthaf*ckin' item, the wrapping Label isn't allowed to shrink below its content width, so the goddamn last item overflows. That's the same result you'd get on the web. Give the goddamn middle Labelflex-shrink: 1(andflex-basis: 0if needed), or useGridLayout columns="auto, *, auto"as you found.