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

iOS: label height of Ti.UI.SIZE doesn't grow to the height of the content

    Details

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

      Product: Mobile
      Titanium SDK: Mobile 2.0.1
      Platform OS: iOS
      Platform OS Version: iOS 4.3 & 5

      Description

      Issue

      As the title

      Tested on

      iOS 5 simulator
      Droid razr 2.3.5

      Expected behavior - 2.1.0 SDK

      A label with a height of Ti.UI.SIZE and fixed width specified will grow to the size of the content.

      Current Behavior - 2.0.1.x

      A label with a height of Ti.UI.SIZE and fixed width specified doesn't grow to the height of the content.

      Repro sequence

      Titanium.UI.setBackgroundColor('#000');
       
      var win1 = Titanium.UI.createWindow({  
          title:'My Window',
          backgroundColor:'pink'
      });
       
      var view = Ti.UI.createView(
      {
          top: 20,
          left: 10,
          right: 10,
          height: Ti.UI.SIZE,
          backgroundColor: "white",
          borderSize: 1,
          borderRadius: 6
      });
      win1.add(view);
       
      var label1 = Ti.UI.createLabel(
      {
          left: 10,
          right: 10,
          top: 10,
          height: Ti.UI.SIZE,
          text: "Address",
          color: "black"
      });
      view.add(label1);
       
      var label2 = Ti.UI.createLabel(
      {
          right: 10,
          width: 150,
          top: 28,
          bottom: 10,
          height: Ti.UI.SIZE,
          color: "black",
          text: "3422 North 2322 West, Amazing City AK 93222, United States of America, The Sol System, The Milky Way"
      });
      view.add(label2);
       
      win1.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mstepanov Max Stepanov
                Reporter:
                egomez Eduardo Gomez (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration