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

ardee-1’s picture

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.

eaton’s picture

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.

hickory’s picture

Version: 5.x-1.x-dev » 4.7.x-1.x-dev
ardee-1’s picture

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.)

hickory’s picture

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

ardee-1’s picture

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!

hickory’s picture

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

lemartialou’s picture

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)

hickory’s picture

Assigned: Unassigned » hickory
Category: bug » support
Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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