EdouardTack / candlestick

jQuery plugin selector between three options
MIT License
11 stars 11 forks source link

Toggle on not in the right position when manually adjust the size of toggle #3

Closed thewayiam closed 8 years ago

thewayiam commented 8 years ago

While adjust the width of toggle, e.g. smaller toggle, then it will make the toggle left a little room when move it to "on" as below: image

I think this might couse from this line, if we could change the candlestick-on to candlestick-toggle as var left = this.parent.outerWidth() - this.parent.find('.candlestick-toggle').outerWidth();, it will allow us to modify the toggle size, what do you think? If that's acceptable to you, I would like to send a PR!

EdouardTack commented 8 years ago

Can you show me the candlestick code that you use. I will test this.

thewayiam commented 8 years ago

I use candlestick.js in /lib/js/ https://github.com/EdouardTack/candlestick/tree/master/lib/js I'm overwrite the toggle width to made this problem happen, you can reproduce it by change the width to 10px at this line.