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

BlackBerry : Layout crashes if we touch the views before it finishes laying out the whole layout

    Details

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

      Description

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

       
      var win = Titanium.UI.createWindow();
        
      var scroll = Ti.UI.createScrollView({
          backgroundColor: '#ccc',
          width: Ti.UI.FILL,
          height: Ti.UI.FILL,
          layout: 'vertical',
            
      });
        
      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 & run it on a BB device.
      3. Immediately after the app launches & you see the scrollview touch & try to scroll the scroll view. (make sure this happens before all the layout is complete)

      Actual results:
      1. The layout crashes & the scroll view does not scroll anymore
      2. If you wait for the whole layout to complete & then touch the scroll view then everything works fine

      Expected Results:
      1. The layout should not crash

        Attachments

          Activity

            People

            • Assignee:
              joshroesslein Josh Roesslein
              Reporter:
              lokeshchdhry Lokesh Choudhary (Inactive)
              Reviewer:
              Pedro
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration