Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15378] Android: Different Behaviour of Window within TabGroup in iOS and Android when set with borderRadius and BorderColor

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-10-18T18:12:47.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sRelease 3.3.0
ComponentsAndroid
Labelsmodule_tabgroup, parity, qe-3.2.0, qe-testadded, triage
ReporterPriya Agarwal
AssigneeSunila
Created2013-09-30T11:49:37.000+0000
Updated2014-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

FileDateSize
3.1.1.png2013-09-30T11:49:37.000+000019037
3.1.1ios.png2013-09-30T11:49:37.000+000022828
3.1.3.android.png2013-09-30T11:49:37.000+000016613
3.1.3.ios.png2013-09-30T11:49:37.000+000023438

Comments

  1. Sunila 2013-10-15

    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
  2. Hieu Pham 2013-10-18

    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.
  3. Hieu Pham 2013-10-18

    CR + FR
  4. Priya Agarwal 2013-12-11

    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)
  5. Sabil Rahim 2014-03-24

    Looks to be already resolved on master & 3_2_X removing the 3.2.3 branch

JSON Source