I have encountered a funny problem.
The runner does not stop at the slider’s maximum end but continues until it has reached slider size plus runner size length. That is when the runner stops it has just turned inivisible to the right of the slider.
Funny thing is that this does not always occur.
When I have div1 → div2 → sliderholderdiv → slider this occurs.
With div1 → sliderholderdiv → slider it does not occur.
I have tried a plethora of variations but have not been able to solve this.
I’m having the exact same problem, exactly how do you solve this?
Aldo I’m using a slider inside an accordion which loads in different div objects… But I guess the problem is the same.
I’m still having this problem and can’t really think of a way to get around it.
I am using an accordion atm. I’m loading in different div objects into the accordion menu and the slider is inside one of those divs.
Accordion, seems to be using display = none, when it switches through the menu buttons.
Here is a bit of a code example of what im talking about.
The problem for me is, The accordion is loading the div object “WindowSettingsDiv” which uses the slider module by the use of loading into another div object, “AlphaSlider”. This however triggers the problem with the slider going above its maximum limit.
Is there an easy way to solve this problem and not having to reload the slider each time the accordion menu button is triggerd?
I had already used method 2.
If you are not too busy, I would appreciate a brief explanation why style.display = “none” do not work. I might learn something.
I discovered the other day that when an object is set to style.display = “none”, offsetWidth and offsetHeight is set to zero. That might be the problem in the example above.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan