Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5666] MobileWeb: Object label inherits properties from the parent objects

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-06-08T06:40:01.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeMaxim Negadaylov
Created2011-05-24T03:30:10.000+0000
Updated2017-03-04T00:19:22.000+0000

Description

Label inherits properties which are present in the parent object of label. In the case of Button everything works fine.
win = Ti.UI.currentWindow;

var view = Ti.UI.createView({
	width: 500,
	height: 500,
	backgroundColor: '#080',
	fontSize: 25,
	fontStyle: 'italic',
	opacity: 0.5
})

var button = Ti.UI.createButton({
	title: 'Child button'
})

var label = Ti.UI.createLabel({
	text: 'I am a big label',
	color: 'red'
})
win.add(view);
view.add(label);
view.add(button);

Comments

  1. Lee Morris 2017-03-04

    Closing ticket due to MobileWeb no longer being supported.

JSON Source