Bogdan1975 / ng2-slider-component

Angular 2 slider component
MIT License
68 stars 50 forks source link

Problem with margin-left on parent component #19

Open viptec opened 8 years ago

viptec commented 8 years ago

if I have a html element which has a margin-left set, the calculation of the sliders seems buggy.

just open the demo page and change the margin-left style attribute of div id="app-container" to 200px and try to use any of the sliders.

The result I'm getting is that I cannot scroll to the lower limit - on the other hand, I'm able to scroll beyond the limits of the slider component.

danfri86 commented 7 years ago

I'm having this problem as well. The problem is not only when the parent has margin, but also the parents parent. And padding gives me the same problem.

Did you find a solution to this @viptec?

ChristianPeter commented 7 years ago

No, I switched to bootstrap-slider ;-)