Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19536] Android: When Multiple Views in horizontal layout, "SIZE" constrains to the full container size, not the remaining available width

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-08-23T00:02:39.000+0000
Affected Version/sRelease 4.1.1
Fix Version/sRelease 6.2.0
ComponentsAndroid
Labels3.2.2.GA, 3.4.0, TCSupportTriage, api, auto, label, size, view, width
ReporterTim Kelly
AssigneeJoshua Quick
Created2014-09-29T19:28:26.000+0000
Updated2017-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".

Comments

  1. Manojkumar Murugesan 2016-01-14

    I'm facing same issue, any solution or work around?
  2. Abir Mukherjee 2017-08-23

    Passed FR. PR merged. Changes are seen in SDK versions: 6.2.0.v20170822113609 7.0.0.v20170822142802

JSON Source