Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5680] MobileWeb: Method add works incorrectly with searchBar

GitHub Issuen/a
TypeTechnical task
PriorityLow
StatusReopened
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sRelease 1.7.2
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeChris Barber
Created2011-06-01T02:38:57.000+0000
Updated2018-04-05T00:00:25.000+0000

Description

When adding a label to searchBar by method add the label does not appear. The label present in the code of searchBar element but i can't see it in a browser window.
var win = Ti.UI.currentWindow;

var searchBar = Ti.UI.createSearchBar({
	top: 10,
	left: 10,
	width: 200,
	height: 50,
});


win.add(searchBar);

	var l1 = Ti.UI.createLabel ({
		text: 'You add me!',
		backgroundColor: 'red',
		width: 40,
		height: 20,
		left: 30,
		top: 5
	});

searchBar.add(l1);

Comments

No comments

JSON Source