[TIMOB-19536] Android: When Multiple Views in horizontal layout, "SIZE" constrains to the full container size, not the remaining available width
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-08-23T00:02:39.000+0000 |
Affected Version/s | Release 4.1.1 |
Fix Version/s | Release 6.2.0 |
Components | Android |
Labels | 3.2.2.GA, 3.4.0, TCSupportTriage, api, auto, label, size, view, width |
Reporter | Tim Kelly |
Assignee | Joshua Quick |
Created | 2014-09-29T19:28:26.000+0000 |
Updated | 2017-08-23T00:02:47.000+0000 |
Description
If you create a View with a horizontal layout and a fixed width, and two children, one of fixed width, and one of "SIZE" width, the second one will expand to, what appears to be, the full size of the container, even though this makes it run out of the containing view (and get cut off). This works as expected in iOS.
Also, if you set the view to FILL, it doesn't get cut off in that case either.
Here's an example of code that demonstrates this issue.
Note, depending on screen size, part of the "Alphabet" label is getting cut off. The amount that gets cut off seems to be dependent on the size of the view I've ID'ed as "Control".
I'm facing same issue, any solution or work around?
Passed FR. PR merged. Changes are seen in SDK versions: 6.2.0.v20170822113609 7.0.0.v20170822142802