Multiverse Feedback: Cardlist | Visual spoiler | Export | Booster | Comments | Search | Recent activity
Mechanics | Upcoming releases | Skeleton

CardName: Cropping roll-over image Cost: Type: Bug Pow/Tgh: / Rules Text: When the tooltip image is larger than usual, e.g. the default for a cardset is to prefer images to mock-ups, the roll-over displays the card image, but (at least for me) the right edge of the card gets cut off, removing the P/T, loyalty, and/or mana cost. Flavour Text: Set/Rarity: Multiverse Feedback Common

Cropping roll-over image
 
 C 
Bug
When the tooltip image is larger than usual, e.g. the default for a cardset is to prefer images to mock-ups, the roll-over displays the card image, but (at least for me) the right edge of the card gets cut off, removing the P/T, loyalty, and/or mana cost.
Updated on 21 Feb 2012 by Alex

History: [-]

2011-09-06 04:05:15: dude1818 created the card Cropping roll-over image
2011-09-06 04:05:48: dude1818 edited Cropping roll-over image

It seems fixing Mockups favoured over images brought its own problems. :)

Heh. Yep. The problem is that your images are too large :P

Well, no, the problem actually is my tooltip library doesn't let me adjust the size of the tooltip once the AJAX request returns. I have to guess how big will be big enough; if it's too small we get this problem, but if it's too big the tooltip moves to the left of the cursor unnecessarily.

There are a couple of other problems with the tooltip library I'm using, so this may be indicating I need to ditch it and write my own that's better suited to my needs.

2012-01-13 08:45:57: Alex edited Cropping roll-over image

If you do you'll make friends, the web guy here is fuming at the lack of decent working tooltip libraries anywhere on the net. (As an immediate fix - set the width and height attributes on the img?)

Hah. It ain't an img. Not at the time my AJAX library looks for it. It's just an <a> with a class or two. It only finds out it's an img when the request comes back from the server, which is long after the Prototip library has locked in the width that the tooltip will be henceforth & forever.

But it's okay, as I said over on Haunting Vision, I do have a fix already working locally; when generating the <a> I look at what the card is at that point, and add a class to the link that my client-side JS uses to take a reasonable guess as to how big to make the tooltip.

Oh, I meant keep the tooltip the same size; but always force the card image to be scaled.

Oh. Hmm. That's not a bad idea. I might see if I can work that in, even if just for tooltips.

2012-01-13 21:15:59: Alex edited Cropping roll-over image:

fixed, more or less

Um, nope. Now my cards are cut in half. For example: Bad Wolf Entity.

2012-01-13 21:32:11: dude1818 edited Cropping roll-over image:

Still a problem

Hmm. So it is.

2012-02-21 00:28:18: Alex edited Cropping roll-over image:

should be fixed properly now

Right, I've had another go at fixing this. The links on The Oncoming Storm have much nicer tooltips now.

Add your comments:


(formatting help)
Enter mana symbols like this: {2}{U}{U/R}{PR}, {T} becomes {2}{u}{u/r}{pr}, {t}
You can use Markdown such as _italic_, **bold**, ## headings ##
Link to [[[Official Magic card]]] or (((Card in Multiverse)))
Include [[image of official card]] or ((image or mockup of card in Multiverse))
Make hyperlinks like this: [text to show](destination url)
What is this card's power? Kindercatch
(Signed-in users don't get captchas and can edit their comments)