-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slider bar not filling the inner bar when max and min bounds are changed dynamically #214
Comments
Do you have a live example of your issue? jsfiddle/static HTML ? |
This is as best as i can replicate it. Notice as you pick different drop-down values the bar wont fill. Also if you drag the bar to the unfilled side it gets shorter by a step. |
In your example, the selected range seems very - very - small regarding the whole selection area. It seems normal that the range does not appear. Am I wrong? |
I'm not sure what you mean? This issue is that the bounds do not fill the bar. The range is not a problem. I would think that if the difference between my start and end time is 10 minutes or 10 months the full bar would still represent that difference but for some reason the max width of the bar is changed. |
I don't understand your point. Can you show me (with an image for instance) how do you expect it to be displayed? |
Okay. I do not have this result AT ALL. Which browser do you use? |
I am using Chrome. |
Are you sure the example you in your jsFiddle is working? Example:
I suggest you to also set And in your Bounds = min and max selectable values |
The initial start and end dates are not important, i used that example to make sure they are initialized with something. Its the changing of them that is the issue. I realize I am only changing the bounds as i want the values to stay as they were, the issue is the bound's value does not equal the end of the full bar in my case. If I were to change the values on the |
It almost seems that whatever function is used to work out the size of a step in pixels has a rounding error or something like that as its missing a step from the end. |
I have noticed that when I initialize the daterangeslider with a min and max bounds the slider displays and functions correctly. However if I change the bounds after a selection of a filter from a selection box the right side of the bar will not "fill" and there is an empty offset and the right handle cannot be dragged to fill it. This offset distance changes when the bounds have different values but I cannot see any logical correlation.
I also had an issue with the right arrow, it was rendered over the bar and I had to specify a right of -30px to position it correctly. I have noticed that this is the distance of the largest offset of the bar not "filling".
The text was updated successfully, but these errors were encountered: