Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13399] iOS: UI.iPhone.NavigationGroup cropping navigation bar by 2 pixels

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2016-08-09T09:24:04.000+0000
Affected Version/sRelease 3.0.2
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterJosh Baker
AssigneeChee Kiat Ng
Created2012-12-14T17:18:14.000+0000
Updated2016-08-09T09:24:04.000+0000

Description

2 pixels are cropped off of the navigation bar when using UI.iPhone.NavigationGroup. Please see attached for expected outcome, achieved using UI.TabGroup, and the actual outcome, when using UI.iPhone.NavigationGroup. *app.js: actual_navigationbar_implementation*
var win1 = Titanium.UI.createWindow({
	backgroundColor : '#fff',
	title : 'Test'
});

var nav = Titanium.UI.iPhone.createNavigationGroup({
	window : win1
});

var win = Titanium.UI.createWindow();
win.add(nav);
win.open();
*app.js: expected_tabbar_implementation*
var tabGroup = Ti.UI.createTabGroup();

var win = Titanium.UI.createWindow({
	backgroundColor : '#fff',
	title : 'Test',
	tabBarHidden : true
});

var tab = Ti.UI.createTab({
	title : '',
	window : win
});

tabGroup.addTab(tab);
tabGroup.open();

Attachments

FileDateSize
actual_navigationbar_implementation.png2012-12-14T17:18:14.000+000042789
expected_tabbar_implementation.png2012-12-14T17:18:14.000+000043022

Comments

  1. Daniel Sefton 2013-04-05

    Tested and confirmed with 3.0.2 GA on iOS 6 Simulator.
  2. Hans Knöchel 2016-08-09

    Fixed in latest builds and using the refactored version (Ti.UI.iOS.NavigationWindow).

JSON Source