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

Blackberry: Layout Engine Vertical Layout - Error on method 'createButton'

    Details

    • Sprint:
      2013 Sprint 02 BB

      Description

      This is regression against 3.1.3.GA
      javaScript Exception

      app.js:13
          return Ti.UI.createButton({
                       ^
      TypeError: Object true has no method 'createButton'
          at MyButton (app.js:13:18)
          at app.js:20:16
      [N_DEBUG] virtual int NativeAbstractTextControlObject::setFont(TiObject*) Line 159: Unknown value received: Bold
      
      

      To reproduce run

      var win = Titanium.UI.createWindow();
       
      var scroll = Ti.UI.createScrollView({
          backgroundColor: '#ccc',
          width: Ti.UI.FILL,
          height: Ti.UI.FILL,
          layout: 'vertical',
          contentHeight: Ti.UI.SIZE,
          contentWidth: Ti.UI.FILL
      });
       
      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();
      

      Expected result

      You should see a scrollview with buttons layed out in vertical layout & numbered (1 - 100).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                penrique Pedro Enrique (Inactive)
                Reporter:
                oromero Olga Romero
                Reviewer:
                Russell McMahon
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code