Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5681] MobileWeb: Method add works incorrectly with imageView

GitHub Issuen/a
TypeSub-task
PriorityLow
StatusReopened
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sRelease 1.7.2
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeChris Barber
Created2011-06-01T02:33:13.000+0000
Updated2018-04-04T23:57:08.000+0000

Description

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

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


win.add(imageView);

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

imageView.add(l1);

Comments

No comments

JSON Source