[AC-2087] Titanium.UI.MobileWeb.NavigationGroup: property top is undefined
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-01-29T17:22:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Yaroslav Pidstryhach |
Assignee | Shak Hossain |
Created | 2012-12-28T12:29:22.000+0000 |
Updated | 2016-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
Hi, It's returning undefined because you're not giving "top" property a value inside createNavigationGroup()