Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11732] BlackBerry: Titanium.UI.Slider - setting width to the slider only crops it, is not actually setting the right end where is should be.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2013-04-10T18:02:48.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 08 BB, 2013 Sprint 08, Release 3.2.0
ComponentsBlackBerry
Labelsblackberry, qe-testadded
ReporterDan Tamas
AssigneeJosh Roesslein
Created2012-11-10T17:44:22.000+0000
Updated2014-02-19T07:04:49.000+0000

Description

Trying to set the width of a slider does not change the end of the slider in the correct position, but it allows you to go further to the right even if there is no visible slider. Please see the shots for a better understanding :)
var win = Ti.UI.createWindow({
	backgroundColor:'#f00'
});

win.open();




var slider_ok = Titanium.UI.createSlider({
    top:10,
    min: 3,
    max: 26,
    value: 10
});


var slider_wrong = Titanium.UI.createSlider({
    top:100,
	width:300,
    min: 3,
    max: 26,
    value: 10
});



win.add(slider_ok);
win.add(slider_wrong);

Attachments

FileDateSize
Screen Shot 2012-11-10 at 18.39.41.png2012-11-10T17:44:22.000+000065365
Screen Shot 2012-11-10 at 18.39.46.png2012-11-10T17:44:22.000+000068853

Comments

  1. Ketan Majmudar 2013-02-24

    I've tried editing the size of my sliders in the CuppaCoffee app of mine and this is a problem as the container view is being altered, not the actual control.
  2. Priya Agarwal 2013-11-13

    Verified with: Appcelerator Studio: 3.2.0.201311122045 SDK:3.2.0.v20131112180422 alloy: 1.3.0 acs: 1.0.7 npm: 1.3.2 titanium: 3.2.0 titanium-code-processor: 1.0.3 Xcode:5.0.1 Device: Blackeberry Z 10 OS: Mac OSX 10.9 BB OS 10.0.10.261 Slider working as expected even when set with width.Not cropping. Hence closing the issue as working as expected.

JSON Source