[TIMOB-24814] Windows: Label's width/height doesn't recalculate right when it contained in View with set width/height
GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-09-12T22:08:55.000+0000 |
Affected Version/s | Release 6.1.0 |
Fix Version/s | Release 6.1.2, Release 6.2.0 |
Components | Windows |
Labels | n/a |
Reporter | Shuo Liang |
Assignee | Kota Iguchi |
Created | 2017-06-13T01:30:14.000+0000 |
Updated | 2017-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
File | Date | Size |
index.tss | 2017-06-13T01:29:29.000+0000 | 3036 |
index.xml | 2017-06-13T01:29:42.000+0000 | 179 |
https://github.com/appcelerator/titanium_mobile_windows/pull/1014
6.1.2 backport: https://github.com/appcelerator/titanium_mobile_windows/pull/1038
6.1.2 backport FR passed and merged
Verified fix in 6.1.2.v20170720023139. Closing ticket
[~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.
Thanks [~nmishra], confirmed regression in 7.0.0.v20170908080606 and 6.2.0.v20170908064701. Reopening ticket
6_2_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1098 master: https://github.com/appcelerator/titanium_mobile_windows/pull/1099
Verified in 6.2.0.v20170912203804, waiting for Jenkins to come back online before master build is produced
Verified in 6.2.0.GA and 7.0.0.v20170912234515 closing