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

Android: View borderWidth with 'dp' dimensions does not show on Android

    Details

      Description

      problem

      If the borderWidth property of a Titanium view is specified density independently (dp), it does not show up on Android. If you remove the dp suffix on the borderWidth property, everything works as expected. This problem also occurs on Mobileweb (). This problem does not occur on iOS.

      expected behavior

      The border should appear as expected whether or not density independent (dp) dimensions are specified for the borderWidth property.

      test case

      var win = Ti.UI.createWindow({
      	backgroundColor: '#fff'
      });
      var view = Ti.UI.createView({
      	height: '100dp',
      	width: '100dp',
      	backgroundColor: '#888',
      	borderColor: '#000',
      	borderWidth: '3dp'   // error, no border appears
      	//borderWidth: 3     // this works as expected
      });
      win.add(view);
      win.open();
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sunila Sunila
                Reporter:
                tlukasavage Tony Lukasavage
                Reviewer:
                Allen Yeung
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration