Half-stars display wrong when vote is centered

ardee - March 15, 2007 - 18:35
Project:jRating
Version:4.7.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:hickory
Status:closed
Description

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!

#1

ardee - March 17, 2007 - 15:46

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

eaton - March 19, 2007 - 10:14
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

hickory - March 19, 2007 - 10:58
Version:5.x-1.x-dev» 4.7.x-1.x-dev

#4

ardee - March 19, 2007 - 13:47

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

hickory - March 19, 2007 - 13:50

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

#6

ardee - March 19, 2007 - 14:39

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

hickory - November 22, 2007 - 17:23

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

#8

lemartialou - December 3, 2007 - 02:12

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

hickory - December 3, 2007 - 13:12
Category:bug report» support request
Assigned to:Anonymous» hickory
Status:active» fixed

#10

Anonymous - December 17, 2007 - 13:13
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.