Bug Tracker

Modify

Ticket #2428 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

ui.slider will not work if slider is hidden during slider() init call.

Reported by: khelenek Owned by: paul
Priority: minor Milestone:
Component: ui Version:
Keywords: Cc:
Blocking: Blocked by:

Description

There is no version for UI, but this is for 1.5b.

If you put the slider in a hidden div (like in an accordion, tabview, etc..), and then initialize the slider, it will not work. It looks like it needs to be on visible during the call to $(obj).slider() or else the mouse cannot drag the slider. I'm using it in a filtering tree, and currently trying a complex workaround where it initializes when it first becomes visible, but since i cannot guarantee i would consider this a major bug. It would be nice to know if this even can be fixed, and of course if it will.

Change History

comment:1 Changed 5 years ago by paul

  • Owner changed from paul to braeker

comment:2 Changed 5 years ago by joern

[5074] improves the situation. By recomputing the size if it isn't available on initialization, the slider is useable, but the handle isn't correctly positioned at the specified startValue. No solution for that yet.

comment:3 Changed 5 years ago by braeker

  • Status changed from new to closed
  • Resolution set to invalid

comment:4 Changed 5 years ago by braeker

  • Status changed from closed to reopened
  • Resolution invalid deleted

comment:5 Changed 5 years ago by braeker

  • Owner changed from braeker to joern
  • Status changed from reopened to new

comment:6 Changed 5 years ago by joern

  • Owner changed from joern to paul

Broken in [5141], size() got removed.

comment:7 Changed 5 years ago by paul

  • Priority changed from major to minor

comment:8 Changed 5 years ago by joern

  • Status changed from new to closed
  • Resolution set to fixed

Fixed, again.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.