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

BlackBerry : Buttons with width as Ti.UI.SIZE on a view with horizontal layout exits the app on launch

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Component/s: BlackBerry
    • Environment:

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

      Description

      Note: This issue is seen only for buttons. Views & Labels work fine

      Description:
      ==============
      1. Create an app with the following code:

      FOR BUTTON:
      ================

      var win = Ti.UI.createWindow({});
           
      var view = Ti.UI.createView({
      	backgroundColor:'green',
              height:200,
              width:200,
              layout:'horizontal'
               
      });
       
      win.add(view);
           
      var v1 = Ti.UI.createButton({
      	    //backgroundColor:'blue',
          	title:'button 1',
              height:30,
              left:5,
              width:Ti.UI.SIZE,
              top:80
      });
          
      view.add(v1);
          
      var v2 = Ti.UI.createButton({
          	//backgroundColor:'red',
          	title:'button 2',
              height:30,
              left:5,
              width:Ti.UI.SIZE,
              top:80
      });
          
      view.add(v2);
          
      var v3 = Ti.UI.createButton({
          	//backgroundColor:'black',
          	title:'button 1',
              height:30,
              left:5,
              width:Ti.UI.SIZE,
              top:80
      });
          
      view.add(v3);
          
       
      win.open();
      

      2. Build & run for BB device/simulator
      3. Observe after app launches

      Actual Result:
      ===============
      1. The app exits immediately after launch

      Expected Result:
      =================
      1. The app should run & we should see the views & buttons in horizontal layout

        Attachments

          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-16828
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration