Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24814] Windows: Label's width/height doesn't recalculate right when it contained in View with set width/height

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-09-12T22:08:55.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sRelease 6.1.2, Release 6.2.0
ComponentsWindows
Labelsn/a
ReporterShuo Liang
AssigneeKota Iguchi
Created2017-06-13T01:30:14.000+0000
Updated2017-09-14T16:37:16.000+0000

Description

Problem

While building UI in Windows, we've came to notice that, when a Label's height and width are set to Ti.UI.SIZE AND it is contained in a View whose Width property is set (e.g. width: '50%', width: '500'), the size of the Label seems not to be recalculated correctly. This works fine in Android and iOS.

Reproduce

1. Run the attached simple code in a empty alloy project. 2. Observe how the long text is cut off in both labels.

Note

If the container view (in this case, wrapperLeft or wrapperRight) has a Ti.UI.SIZE or Ti.UI.FILL (or not fixed value), the issue disappears.

Attachments

FileDateSize
index.tss2017-06-13T01:29:29.000+00003036
index.xml2017-06-13T01:29:42.000+0000179

Comments

  1. Kota Iguchi 2017-06-14

    https://github.com/appcelerator/titanium_mobile_windows/pull/1014
  2. Kota Iguchi 2017-07-11

    6.1.2 backport: https://github.com/appcelerator/titanium_mobile_windows/pull/1038
  3. Ewan Harris 2017-07-14

    6.1.2 backport FR passed and merged
  4. Ewan Harris 2017-07-21

    Verified fix in 6.1.2.v20170720023139. Closing ticket
  5. Neeraj Mishra 2017-09-08

    [~kiguchi] / [~eharris]: Customer reported that with 6.2.0.v20170628154113 it works fine but does not work in 6.2.0 RC (6.2.0.v20170901083635). I did not test it yet but looks like a regression.
  6. Ewan Harris 2017-09-08

    Thanks [~nmishra], confirmed regression in 7.0.0.v20170908080606 and 6.2.0.v20170908064701. Reopening ticket
  7. Kota Iguchi 2017-09-11

    6_2_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1098 master: https://github.com/appcelerator/titanium_mobile_windows/pull/1099
  8. Ewan Harris 2017-09-13

    Verified in 6.2.0.v20170912203804, waiting for Jenkins to come back online before master build is produced
  9. Ewan Harris 2017-09-14

    Verified in 6.2.0.GA and 7.0.0.v20170912234515 closing

JSON Source