Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1130] Slider breaks when value is set to 0

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:17.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsdefect, ios, iphone, slider
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T02:44:50.000+0000
Updated2011-04-17T01:55:17.000+0000

Description

A premium customer submitted a ticket that when they set a sliders value to 0 the slider became unusable. I have reproduced this as well. Code below.

var basicSlider = Titanium.UI.createSlider({

min:0,
max:10,
value:0,
width:100,
height:'auto',
top:30

});

Helpdesk ticket:
http://helpdesk.appcelerator.net/tickets/3061">http://helpdesk.appcelerator.net/tickets/3061

Comments

  1. Jeff Haynie 2011-04-15

    (from [2d6b09ab17ba72955c9f998f72ad0da235e4978c]) Closes #1130: Have to have slider take on non-zero value at creation to force subview drawing. http://github.com/appcelerator/titanium_mobile/commit/2d6b09ab17ba72955c9f998f72ad0da235e4978c"> http://github.com/appcelerator/titanium_mobile/commit/2d6b09ab17ba7...

JSON Source