[TIMOB-5682] MobileWeb: Method add in slider object does not work correctly.
| GitHub Issue | n/a |
|---|---|
| Type | Sub-task |
| Priority | Low |
| Status | Closed |
| Resolution | Won't Fix |
| Resolution Date | 2017-06-29T18:51:05.000+0000 |
| 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-05-27T02:32:30.000+0000 |
| Updated | 2018-04-04T23:20:28.000+0000 |
Description
When adding a label to slider by method add the label does not appear. The label present in the code of slider element but i can't see it in a browser window.
var win = Ti.UI.currentWindow;
var slider = Ti.UI.createSlider({
value: 'the slider',
top: 10,
left: 10,
width: 200,
height: 50,
min: 0,
max: 100
});
win.add(slider);
var but = Ti.UI.createButton({
title: 'add',
top: 100
});
win.add(but);
but.addEventListener('click', function(){
var l1 = Ti.UI.createLabel ({
text: 'You add me!',
backgroundColor: 'red',
width: 40,
height: 20,
left: 30,
top: 5
});
slider.add(l1);
alert('slider with label');
});
Resolving as "Won't Fix" as MobileWeb has been deprecated.
Closing as will not fix.