[TIMOB-5666] MobileWeb: Object label inherits properties from the parent objects
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-06-08T06:40:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Backlog |
Components | MobileWeb |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Maxim Negadaylov |
Created | 2011-05-24T03:30:10.000+0000 |
Updated | 2017-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);
Closing ticket due to MobileWeb no longer being supported.