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

Blackberry: Ti.UI.SIZE and doesn't work with Labels

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.1.0
    • Fix Version/s: None
    • Component/s: BlackBerry
    • Labels:
      None
    • Environment:

      TiSDK 3.1.0.v20130320125153
      BB sim C

      Description

      problem

      Ti.UI.SIZE used for the height and width of a Ti.UI.Label causes the label not to appear at all on Blackberry. The use of Ti.UI.SIZE is critical with this component and is commonly used as the default behavior for a Label is typically Ti.UI.FILL.

      expected behavior

      Using Ti.UI.SIZE for the height and width of a Ti.UI.Label should result in the Label being the exact height and width of the text within it, based on the Label's set or default font properties.

      test case

      var win = Ti.UI.createWindow({
      	backgroundColor: '#eee'
      });
      var label = Ti.UI.createLabel({
      	color: '#000',
       
      	height: Ti.UI.SIZE, // comment this line and
      	width: Ti.UI.SIZE,  // comment this line to show text 
       
      	text: 'this is a test'
      });
      win.add(label);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rmcmahon Russell McMahon
                Reporter:
                tlukasavage Tony Lukasavage
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration