Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24742] iOS: Ti.UI.Label are ellipsized by default, causing layout issues (Regression)

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2017-05-31T09:10:06.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sn/a
ComponentsiOS
Labelsellipsize, label, regression
ReporterHans Knöchel
AssigneeHans Knöchel
Created2017-05-29T11:17:35.000+0000
Updated2017-06-01T18:03:43.000+0000

Description

Reported via [~rdperottoni] on Slack: {quote} All my multi line labels on iOS are now with ellipsized and I need to specify maxLines for it to go back to normal. Anyone else with this issue ? [...] I believe this should be marked as a breaking update since now I'll have to update all my labels to have a set amount of lines. Also, the documentation should be updated since it says this property is not available on iOS. {quote} It was likely caused by TIMOB-24071, the expected behavior would be that the developer does not need to specify a maxLines property to display the label. Regarding the docs, it [works for me](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Label-property-maxLines) and displays the correct since/platform keys.

Attachments

FileDateSize
6_0_X-50.png2017-05-30T20:44:20.000+000030078
6_0_X-size.png2017-05-30T20:44:21.000+000035270
6_1_X-50.png2017-05-30T20:44:21.000+000030607
6_1_X-size.png2017-05-30T20:44:21.000+000035758

Comments

  1. Hans Knöchel 2017-05-30

    [~rdperottoni] I am unable to reproduce this issue with the following demo-code (both height: 50 and auto-sized):
       
       var win = Ti.UI.createWindow({backgroundColor: "#fff"});
       var label = Ti.UI.createLabel({
           text: 'kdljkdl asdajdas ldsjkld ajsdjasdsjakdasjkldajskdjklsadjklsadjklsadjklsadjklsajdkadsjkasjdkl',
           width: 200,
       	height: 50,
           backgroundColor: 'red'
       })
       
       win.add(label);
       win.open();
       
    See the 4 screens attached (6_1_X and 6_0_X with a specified height and auto-sized height). Both look like the same between the different SDK versions. If you can, please paste a small test-case here that reproduces the issue, thank you!
  2. Hans Knöchel 2017-05-31

    Resolving as Invalid as communicated with [~rdperottoni]. It was a global layout setting that caused this issue.
  3. Eric Merriman 2017-06-01

    Closing as such.

JSON Source