Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16357] iOS: view.getVisible() returns undefined

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-11-02T12:24:22.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterVladimir S
AssigneeVijay Singh
Created2014-02-02T08:50:28.000+0000
Updated2017-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();

Comments

  1. Ritu Agrawal 2014-02-03

    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.
  2. Shameer Jan 2014-08-08

    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
  3. Hans Knöchel 2016-11-02

    As [~vijaysingh] found out correctly, the issue is not reproducible in newer versions of the SDK anymore, works fine and therefore is fixed.
  4. Lee Morris 2017-03-31

    Closing ticket as "Cannot Reproduce", if you encounter any further problems please file a new ticket.

JSON Source