[TIMOB-16357] iOS: view.getVisible() returns undefined
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2016-11-02T12:24:22.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Vladimir S |
Assignee | Vijay Singh |
Created | 2014-02-02T08:50:28.000+0000 |
Updated | 2017-03-31T22:43:47.000+0000 |
Description
On iphone, on a newly created and visible view, the method .getVisible() returns undefined, on android it works as expected.
A simple test to reproduce it:
var win = Ti.UI.createWindow();
var view = Ti.UI.createView();
var button = Ti.UI.createButton({title:"getVisible()"});
button.addEventListener("click", function() {
alert("view.getVisible(): "+ view.getVisible());
});
view.add(button);
win.add(view);
win.open();
Moving this ticket to engineering as I can reproduce this issue on iOS platform with 3.2.0 release. It works as expected on Android platform.
Issue reproduces Titanium Command-Line Interface, CLI version 3.3.0, Titanium SDK version 3.3.0.GA iOS SDK: 7.1 iOS iPhone Simulator: 7.1
As [~vijaysingh] found out correctly, the issue is not reproducible in newer versions of the SDK anymore, works fine and therefore is fixed.
Closing ticket as "Cannot Reproduce", if you encounter any further problems please file a new ticket.