Download & Extend

Half-stars display wrong when vote is centered

Project:jRating
Version:4.7.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:hickory
Status:closed (fixed)

Issue Summary

Hello,

I display the average vote in a column of a table. It worked fine when that column was left-justified. But when that column is centered, the half-star portion of the vote comes out screwed up visually (the red part does not match up with the gray part horizontally).

Here's the relevant style info for the relevant table cell:

td.view-field-votingapi-cache-value { text-align: center; }

I need the column centered for when there are no votes and text is returned for that column (thanks to the patch provided for permitting rows to show up even when there are no votes -- Item #7 at http://drupal.org/node/63430 -- it returns the string "no votes", which I changed to "(no votes yet)"). The text looks wrong unless centered, but centering the cell causes the above-described problems with the stars.

Thanks!

Comments

#1

Actually, I now believe that this is an issue for jRating, not for Voting API (right?).

If that's the case, I'm sorry for mistakenly posting it here.

#2

Project:Voting API» jRating
Version:4.7.x-1.x-dev» 5.x-1.x-dev

No problem. It's tricky figuring out which project is the culprit when there are a few APIs involved.

#3

Version:5.x-1.x-dev» 4.7.x-1.x-dev

#4

An example page (apparently looks OK in Firefox v2 but messed up in IE v6):

http://www.shockingflix.com

Page through until you find a node with an average rating that involves a half-star. (The site is the staging area for the next-gen http://www.fuhnee.com ; it's not "live" yet, so most nodes have only my single vote thus far.)

#5

The half-stars on http://www.shockingflix.com/view/all?page=3 look fine to me (in Firefox).

#6

Yeah, like I said, they seem OK in Firefox. It's in IE 6, at least, that the gray and red portions fail to line up horizontally. Strange!

#7

Does td.view-field-votingapi-cache-value .star{ text-align: left; } help?

#8

That helped me! :)

Seems to affect only IE6 and IE7 (in my case modifying the margins of the .rating in the 5.x-dev version)

#9

Category:bug report» support request
Assigned to:Anonymous» hickory
Status:active» fixed

#10

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.