Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2087] Titanium.UI.MobileWeb.NavigationGroup: property top is undefined

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2013-01-29T17:22:24.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterYaroslav Pidstryhach
AssigneeShak Hossain
Created2012-12-28T12:29:22.000+0000
Updated2016-03-08T07:41:03.000+0000

Description

Titanium.UI.MobileWeb.NavigationGroup: property top is undefined after creation.
var self = Ti.UI.createWindow();

var win2 = Ti.UI.createWindow({
backgroundColor: 'red',
title: 'Red Window'
});

var nav = Ti.UI.MobileWeb.createNavigationGroup({
 window: win2
}); 

console.log(nav.top);  // undefined
console.log(nav.getTop());  // undefined 

Comments

  1. Nikhil Sharma 2013-01-29

    Hi, It's returning undefined because you're not giving "top" property a value inside createNavigationGroup()

JSON Source