Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23501

iOS: Ti.UI.Label.ellipsize should default to Ti.UI.TEXT_ELLIPSIZE_TRUNCATE_END, but is undefined

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 6.0.0
    • Component/s: iOS
    • Labels:
    • Sprint:
      2016 Sprint 13 SDK

      Description

      According to docs, it should default to false. See https://github.com/appcelerator/titanium-mobile-mocha-suite/blob/master/Resources/ti.ui.label.test.js#L95 for the unit test, but here's the snippet:

      it('ellipsize', function () {
      		var label = Ti.UI.createLabel({
      			text: 'this is some text'
      		});
      		should(label.ellipsize).be.a.Boolean; // undefined on iOS
      		should(label.getEllipsize).be.a.Function;
      		should(label.ellipsize).eql(false);
      		should(label.getEllipsize()).eql(false);
      		label.ellipsize = true;
      		should(label.getEllipsize()).eql(true);
      		should(label.ellipsize).eql(true);
      	});
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                apetkov Angel Petkov
                Reporter:
                cwilliams Christopher Williams
                Reviewer:
                Hans Knöchel
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-9815
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code