TrailingAccessory in Picker causes incorrect rendering on Picker.Item with a long text #2900
Closed
2 of 7 tasks
Labels
bug
a bug in one of the components
Description
Picker Component is truncating the Item Label too late when having a
trailingAccessory
assigned.If I remove the
trailingAccessory
, it is working fine. Both Picker stop at 100% width of the container.But when using a
trailingAccessory
, it gets pushed out of the container as seen on the screenshot below.Only on Android, iOS is working fine.
Related to
Steps to reproduce
Add two Picker Components with a
trailingAccessory
each.Add
Picker.Item
with short texts to one Picker and add longer texts, which are wider than the screen width, to the other one.Expected behavior
Item text on the long item gets truncated to fit the screen size including the
trailingAccessory
and match styling of the Picker with a short text.Actual behavior
Item text gets truncated at screen size ignoring the width of the
trailingAccessory
making thetrailingAccessory
overlap out of the Picker container.More Info
Code snippet
Screenshots/Video
Environment
Affected platforms
The text was updated successfully, but these errors were encountered: