Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9119] iOS: Titanium.Window - The label "This is a normal window" is partially covered by a Navbar

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Do
Resolution Date2020-01-10T18:08:09.000+0000
Affected Version/sRelease 2.0.2, Release 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsapi, qe-ios050912
ReporterTamila Smolich
AssigneeUnknown
Created2012-05-11T16:29:22.000+0000
Updated2020-01-10T18:08:09.000+0000

Description

Description: The label "This is a normal window" is partially covered by a Navbar. This issue occurs on 2.0.1 as well. Steps to reproduce: 1. Run the following code:
function modalWindow(){
    var b = Ti.UI.createButton({title:'close'});
    var a = Ti.UI.createButton({title:'open win'});
      
    var w = Ti.UI.createWindow({
        backgroundColor:'red',
        rightNavButton:b,
        leftNavButton:a
    });
  
    w.add(Ti.UI.createLabel({text:'This is a normal window', top:20, textAlign:'center', height:40, backgroundColor:'white'}));
  
    b.addEventListener('click', function(){
        w.close();
    });
    a.addEventListener('click', function(){
        normalWindow().open();
    });
    return w;
}
function normalWindow(){
    var b = Ti.UI.createButton({title:'close',width:200,height:40, top:100});
      
    var w = Ti.UI.createWindow({
        backgroundColor:'blue'
    });
    w.add(Ti.UI.createLabel({text:'This is a normal window', top:20, textAlign:'center', height:40, backgroundColor:'white'}));
    w.add(b);
    b.addEventListener('click', function(){
        w.close();
    });
    return w;
}
(function(){
    var win = Ti.UI.createWindow({
        backgroundColor:'green'
    });
  
    var btn = Ti.UI.createButton({
        width:100,
        height:40,
        title:'open modal'
    });
  
    win.add(btn);
  
    btn.addEventListener('click', function(){
        modalWindow().open({modal:true});
    });
  
    win.open();
})();
2. Press "Open modal" button 3. Press "Open win" button 4. Rotate device to the landscape mode, and then back to the portrait 5. Press "Close" button Expected result: The label "This is a normal window" should not be covered by the Navbar Actual result: The label "This is a normal window" is partially covered by the Navbar

Attachments

FileDateSize
Screenshot 2012.05.11 15.14.57.png2012-05-11T16:29:22.000+000033063

Comments

  1. Shameer Jan 2013-04-01

    Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPad Simulator: iOS SDK version: 6.0
  2. Alan Hutton 2020-01-10

    This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. If community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.

JSON Source