Skip to main content

Bug Tracker

Side navigation

#2713 closed bug (invalid)

Opened April 18, 2008 12:45PM UTC

Closed May 04, 2008 07:47AM UTC

realMax not initiated correcly when using multiple handles, maybe also in other cases.

Reported by: berset Owned by: joern
Priority: major Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: slider Cc:
Blocked by: Blocking:
Description

This is my first time using jQuery so I might be wrong on this one, but anyway:

When using 3 sliders (based on the 2 slider example):

<script type="text/javascript">

[...]

$(window).bind("load",function(){

h1 = $("#handle1");

h1.start = 10;

h1.value = 10;

h2 = $('handle2');

h2.value = 50;

h2.start = 50;

h3 = $('handle3');

h3.value = 120;

h3.start = 120;

$('#example3').slider({

minValue: 0,

maxValue: 200,

range: false,

handles: [h1,h2,h3],

slide: function(e,ui) {

[...]

ui.value is 100 even when slider is at max which should be 200.

after some debugging i found that ui.options.realMax.x = 100 still.

adding the following to adjust the realMax value at the top of slide

is a workaround for the bug: (and things start working propertly)

lo = new Object;

lo.x = 200;

lo.y = 200;

ui.options.realMax = lo;

includes:

<link rel="stylesheet" href="jquery.ui/themes/flora/flora.all.css" type="text/css" media="screen" title="Flora (Default)" />

<link rel="stylesheet" href="style.css" type="text/css" />

<script type="text/javascript" src="jquery.ui/jquery-1.2.4a.js"></script>

<script type="text/javascript" src="jquery.ui/ui.base.js"></script>

<script type="text/javascript" src="jquery.ui/ui.slider.js"></script>

Attachments (0)
Change History (4)

Changed April 18, 2008 12:46PM UTC by berset comment:1

this is a duplicat of Ticket #2712

Changed April 18, 2008 01:21PM UTC by berset comment:2

setting max and min instead of maxValue and minValue also solvs the problem :D

I guess this bug is invalid then, maybe the documentation needs to be a bit clearer ..

Changed April 23, 2008 09:52AM UTC by paul comment:3

owner: pauljoern

Changed May 04, 2008 07:47AM UTC by paul comment:4

resolution: → invalid
status: newclosed