dreyescat / bootstrap-rating

Bootstrap Rating is a jQuery plugin that creates a rating control that uses Bootstrap glyphicons for rating symbols.
http://dreyescat.github.io/bootstrap-rating/
MIT License
192 stars 78 forks source link

Data fraction go wrong for RTL wrappers #16

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hello, I just noticed while implementing the code that data fraction is some how reversed direction on.Hover:

<input type="hidden" class="rating" data-fractions="2" value="4.5"/>

I get to fix the value="4.5", since the half star visible on page load was also reversed by changing this snippet .js (left:0 => right:0):

overflow:"hidden",right:0,width:0

However, didn`t get to fix the half star hover issue.

dreyescat commented 9 years ago

Thanks for your feedback! You pointed me to the solution. I just had to think as if the left was the right position :).

I have added support for fractional right-to-left symbols. So in version 1.3.1 it should work.

ghost commented 9 years ago

Thanks for the fix. :+1: