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

iOS: Ti.UI.SIZE on the view, does not work on its child labels, that need to wrap text

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: Release 2.0.1
    • Component/s: iOS
    • Labels:
    • Environment:

      Titanium SDK: Mobile 2.0.1
      Platform OS: iOS
      Platform OS Version: 5.1

      Description

      In the example,

      we have two adjacent labels and a view in window and we want the view that contains the two labels to size its height to the largest label. The first label contains text that should wrap onto multiple lines. Instead of doing that it ellipsizes the text.

      This behavior was possible in 1.8 versions of the SDK.

      var win = Ti.UI.createWindow({
              fullscreen : false,
              backgroundColor : 'white'
      });
       
      var containerView1 = Ti.UI.createView({
              top : '0dp',
              left : '0dp',
              backgroundColor : 'green',
              height : Ti.UI.SIZE,
              width : Ti.UI.SIZE
      });
       
      var label1 = Ti.UI.createLabel({
              text : 'BLAH BLAH BLAH BLAH BLAH!',
              top : '0dp',
              left : '0dp',
              textAlign : 'right',
            	width : '100dp',
              
      });
       
       
      var label2 = Ti.UI.createLabel({
              text : 'BLAH BLAH!',
              top : '0dp',
              left : '108dp',
       
      });
       
       
      containerView1.add(label1);
      containerView1.add(label2);
       
      win.add(containerView1);
       
      win.open();

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                dgandhi Devang Gandhi
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration