[TIMOB-5680] MobileWeb: Method add works incorrectly with searchBar
| GitHub Issue | n/a |
|---|---|
| Type | Technical task |
| Priority | Low |
| Status | Reopened |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.7.2 |
| Components | MobileWeb |
| Labels | n/a |
| Reporter | Misha Vasko |
| Assignee | Chris Barber |
| Created | 2011-06-01T02:38:57.000+0000 |
| Updated | 2018-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);
No comments