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

BlackBerry : Setting 'contentWidth' on scrollview for buttons displays them on the left of the screen

    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(title) {
          return Ti.UI.createButton({
              title: title,
              top: 10
          });
      }
       
      for(var i = 0; i < 100; i++) {
          scroll.add(MyButton('Button #' + (i + 1))); 
      }
       
      win.add(scroll);
      win.open();
      

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

      Actual Result:
      1. The buttons are seen at the very left side of the screen

      Expected Result:
      1. The buttons should be at the center of the screen

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration