-
Notifications
You must be signed in to change notification settings - Fork 156
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
Stars don't change size + are displayed vertically #48
Comments
Could you put a live example online? |
I got an same error. I'm not sure that it is the best way, but it works on my project.
find starShape! and change the code Bold text. **_ part
2.html file $(".my-rating").starRating({ then you can change your star size. maybe... if you change the starsize, stars may verticalized.
find star and ... change div to span var star = '<span class="jq-star" style="width:' + s.starSize+ 'px; height:' + s.starSize + 'px;"><svg version="1.0" class="jq-star-svg" shape-rendering="geometricPrecision" xmlns="http://www.w3.org/2000/svg" ' + this.getSvgDimensions(s.starShape) + ' stroke-width:' + s.strokeWidth + 'px;" xml:space="preserve"><style type="text/css">.svg-empty-' + this._uid + '{fill:url(' + baseUrl + '#' + this._uid + 'SVGID_1);}.svg-hovered-' + this._uid + '{fill:url(' + baseUrl + '#' + this._uid + 'SVGID_2);}.svg-active-' + this._uid + '{fill:url(' + baseUrl + '#' + this._uid + 'SVGID_3);}.svg-rated-' + this._uid + '{fill:' + s.ratedColor + ';}</style>' +
I hope it helpful.. |
Hello!
First i tried with my own code, then i just copied your demo page (without demo.css though). Both times i faced same problem:
Stars are big (i suppose it's their default size??) and displayed vertically, not horizontally
When i change starSize only thing that changes is the "box" where the stars are supposed to be
I downloaded css and js files from src
The text was updated successfully, but these errors were encountered: