Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10859] Android: border doesnt go well with transform

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-05-04T00:12:06.000+0000
Affected Version/sRelease 2.1.2, Release 3.1.0
Fix Version/s2013 Sprint 09 API, 2013 Sprint 09, Release 3.2.0
ComponentsAndroid
Labelscore, exalture, module_view, qe-testadded
ReporterMartin Guillon
AssigneeSunila
Created2012-09-04T06:46:18.000+0000
Updated2014-02-21T11:05:32.000+0000

Description

should be red, and not at the top of the window
var win = Ti.UI.createWindow({ backgroundColor: '#fff' });

var view = Ti.UI.createView({
    backgroundColor:'red',
    borderWidth:2,
    borderColor:'black',
    top:0,
    width:100,
    height:100
});
view.transform = Ti.UI.create2DMatrix().translate(0,100);
win.add(view);

win.open();

Comments

  1. Shameer Jan 2013-03-06

    The problem reproduces with release 3.0.2 and master release 3.1.0 tested on Titanium Studio, build: 3.0.2.201302191606 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 Device: Samsung galaxy s duos Android version: 4.0.4 Android Emulator: Android SDK version: 2.2
  2. Sunila 2013-05-02

    Use outerView to apply the transformation https://github.com/appcelerator/titanium_mobile/pull/4227
  3. Dhirendra Jha 2013-10-23

    Now its working fine. Hence closing this issue. Verified in below environment - Appc Studio - 3.2.0.201310230601 SDK - 3.2.0.v20131022171645 acs -1.0.7 alloy - 1.2.2 titanium - 3.2.0 titanium-code-processor - 1.0.3 Xcode - 5.0.1 OS - Mac OS X Mavericks (10.9) Device - Nexus4(v4.0.4)

JSON Source