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

BlackBerry : Setting 'contentWidth' on scrollview for labels puts them in an infinite drawing loop

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 3.1.1
    • Component/s: BlackBerry
    • Environment:

      Environment:
      Ti Studio : 3.1.1.201306112235
      Ti BB SDK : 3.1.1.v20130615002135
      Mac OSX : 10.8.3
      Alloy : 1.1.3-cr
      CLI - 3.1.1-cr
      win 7
      Win 8
      Z10 BB simulator : 10.0.10.822
      Z10 device running 10.0.10.88

      Description

      Note : This is a regression.

      Description:
      1. Create an app for BB with the following code:

      var win = Titanium.UI.createWindow();
       
      var scroll = Ti.UI.createScrollView({
          backgroundColor: 'green',
          width: Ti.UI.FILL,
          height: Ti.UI.FILL,
          layout: 'vertical',
          contentHeight:Ti.UI.SIZE,
          contentWidth:Ti.UI.SIZE 
      });
       
      function MyButton(text) {
          return Ti.UI.createLabel({
              text: text,
              top: 10,
              //width:50
          });
      }
       
      for(var i = 0; i < 100; i++) {
          scroll.add(MyButton('Label #' + (i + 1))); 
      }
       
      win.add(scroll);
      win.open();
      

      2. Build it for BB device/simulator
      3. launch the app & observe the labels

      Actual Result:
      1. The labels are in an infinite drawing loop

      Expected Result:
      1. The labels should be displayed in the center of the screen

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                penrique Pedro Enrique (Inactive)
                Reporter:
                lokeshchdhry Lokesh Choudhary (Inactive)
                Reviewer:
                Russell McMahon
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration