Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-6116

Android: ScaleX/ScaleY with borderRadius leads to strange results

    Details

    • Type: New Feature
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Component/s: None

      Description

      Scaling a view with borderRadius > 0 leads to strange results. The top left corner is not as round as the other corners.

      var win = Ti.UI.createWindow({
      	backgroundColor: '#fff'
      });
       
      var view = Ti.UI.createView({
      	width: 100,
      	height: 100,
      	borderRadius: 10,
      	backgroundColor: "#f00"
      });
       
      win.add(view);
       
      var scale = 1;
      var fact = 0.01;
       
      win.addEventListener("open", function() {
      	setInterval(function() {
      		scale += fact;
       
      		view.scaleX = scale;
      		view.scaleY = scale;
      		if (scale > 3) {
      			fact *= -1;
      		}
      		if (scale < 1) {
      			fact *= -1;
      		}
      	}, 10);
       
      })
      win.open();
      
      

      Titanium SDK 7.5.1.RC
      Android 7.0.1 (HTC A9)

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain (Inactive)
              Reporter:
              michael Michael Gangolf
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration