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

Android: You can't modify the view border multiple times

    Details

      Description

      Problem Description

      The customer is trying to modify the view's border width as the user's interact with it, and it never changes.

      Actual results

      the view's border width doesn't change

      EXpected results

      being able to modify the view's border width as needed.

      Test case.

      1. Create a new mobile project for android
      2. Paste this code in app.js

      var win1=Ti.UI.createWindow({
                        layout:'vertical',
                        backgroundColor:'gray',
                        exitOnClose:true,
                        navBarHidden:true
                      });
       
      var MyBox=Ti.UI.createView({height:310,
                                  width:310,
                                  backgroundColor:'white',
                                  borderWidth:2,
                                  borderColor:'silver',
                                  top:30
                                 });
      var TheLabel=Ti.UI.createLabel({
              color:'black',
              text:'View border width should double when clicked',
              width:'auto'
           });
      MyBox.add(TheLabel);
       
      function BiggerBorder()
      {
        MyBox.borderWidth*=2;
        MyBox.borderColor='red';
        Ti.API.info('MyBox.borderWidth expanded to '+MyBox.borderWidth);
      }                           
      MyBox.addEventListener('click',BiggerBorder);
      win1.add(MyBox);
       
      win1.open();
      

        Attachments

          Activity

            People

            • Assignee:
              hpham Hieu Pham
              Reporter:
              mpmiranda Mauro Parra-Miranda
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code