[TIMOB-15378] Android: Different Behaviour of Window within TabGroup in iOS and Android when set with borderRadius and BorderColor
| GitHub Issue | n/a | 
|---|---|
| Type | Bug | 
| Priority | Medium | 
| Status | Closed | 
| Resolution | Fixed | 
| Resolution Date | 2013-10-18T18:12:47.000+0000 | 
| Affected Version/s | Release 3.2.0 | 
| Fix Version/s | Release 3.3.0 | 
| Components | Android | 
| Labels | module_tabgroup, parity, qe-3.2.0, qe-testadded, triage | 
| Reporter | Priya Agarwal | 
| Assignee | Sunila | 
| Created | 2013-09-30T11:49:37.000+0000 | 
| Updated | 2014-07-24T09:50:57.000+0000 | 
Description
	Different Behaviour of Window when within TabGroup in iOS and Android when window is set with borderRadius and borderColor and backgroundColor.
var tabGroup = Titanium.UI.createTabGroup();
 
var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'red',
    borderWidth : 0,
    borderColor: 'blue'
     
});
var tab1 = Titanium.UI.createTab({  
    icon:'KS_nav_views.png',
    title:'Tab 1',
    window:win1
});
 
var label1 = Titanium.UI.createLabel({
    color:'#999',
    text:'I am Window 1',
    font:{fontSize:20,fontFamily:'Helvetica Neue'},
    textAlign:'center',
    width:'auto'
});
 
win1.add(label1);
 
  
tabGroup.addTab(tab1);  
 
// open tab group
tabGroup.open();
Expected Result:
Window with red background color must get open with label in middle.
Actual Result:
Gets black colored screen with no label.
Result with 3.1.3.GA and 3.1.2.GA
On Android: black colored screen appears.
On iOS: red background colored window gets open along with label in the center.
Result with 3.1.1.GA
On Android: black colored screen appears along with red background colored window on the top left corner along with the label in the corner.
On iOS: red background colored window gets open along with label in the center.
Attachments
| File | Date | Size | 
|---|---|---|
| 3.1.1.png | 2013-09-30T11:49:37.000+0000 | 19037 | 
| 3.1.1ios.png | 2013-09-30T11:49:37.000+0000 | 22828 | 
| 3.1.3.android.png | 2013-09-30T11:49:37.000+0000 | 16613 | 
| 3.1.3.ios.png | 2013-09-30T11:49:37.000+0000 | 23438 | 
Changed getContentView to use getOuterView instead of getNativeView so that for the windows with border, the border is returned. https://github.com/appcelerator/titanium_mobile/pull/4788
I didn't see the black screen on fail case, but rather a crash with this exception: http://pastie.org/private/hqw9npsnx1hnj9ezbqvhbg (Tested with 4.2.X device on 3.1.2.GA, 3.1.3.GA, and master). Regardless, the PR fixes this.
CR + FR
Closing as working as expected. Tested Environment: Appcelerator Studio: 3.2.0.201312101708 SDK:3.2.0.v20131210191510 alloy: 1.3.0-cr acs: 1.0.10 npm: 1.3.2 titanium: 3.2.0-cr titanium-code-processor: 1.1.0-cr Xcode:5.0.2 OS: Mac OSX 10.9 Device: Google Nexus7(v4.3)
Looks to be already resolved on master & 3_2_X removing the 3.2.3 branch