-
Notifications
You must be signed in to change notification settings - Fork 193
Open
Description
Hello,
We're initializing the slider like so:
$('#dateSlider').jRange({
from: 0,
to: 365,
step: 1,
showScale: false,
format: (value) => { return moment(year+'-01-01').add(value, 'days').format('MMM D'); },
width: $(".slider-wrapper").width(),
isRange : true,
snap: true,
theme: 'theme-blue',
ondragend: (value) => {
value = value.split(',');
filters.startDay = moment(year+'-01-01').add(value[0], 'days');
filters.endDay = moment(year+'-01-01').add(value[1], 'days');
updateViz();
},
});
but, despite $(".slider-wrapper").width() changing on window resize, the slider size isn't changing.
I also tried setting width to '100%', but that led to strange behavior (on the top bar):

Is there a way to call .resize on these sliders? Is there a fixable bug with relative widths?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels