Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5682] MobileWeb: Method add in slider object does not work correctly.

GitHub Issuen/a
TypeSub-task
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-29T18:51:05.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.2
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeChris Barber
Created2011-05-27T02:32:30.000+0000
Updated2018-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');
});

Comments

  1. Lee Morris 2017-06-29

    Resolving as "Won't Fix" as MobileWeb has been deprecated.
  2. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source