Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4791] iOS: when zIndex is not defined, the value is returning 0 when it is suppose to be undefined

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2016-11-02T12:34:16.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterNatalie Huynh
AssigneeHans Knöchel
Created2011-07-26T13:22:17.000+0000
Updated2017-03-14T22:03:14.000+0000

Description

Steps to Reproduce: 1. Run test 1105 from http://wiki.appcelerator.org/display/tp/UI+Composite+Layout+Behavior+Test+Case Actual Result: Returns the value of 0 Expected Result: Return undefined

Comments

  1. Hans Knöchel 2016-11-02

    The zIndex is undefined as expected, using this test-case:
       var win = Ti.UI.createWindow({
           backgroundColor: "#fff"
       });
       
       var btn = Ti.UI.createButton({
           title: "Check undefined zIndex"
       });
       
       btn.addEventListener("click", function() {
           alert(win.zIndex);
       });
       
       win.add(btn);
       win.open();
       
  2. Lee Morris 2017-03-14

    Closed as invalid.

JSON Source