When you href a icon(32x32), then display it through the img tag(), you gain a outputted 16x16 scaled icon, which is intended, but the href still holds the 32x32 size in the output, bleeding into the next image(when using multiple images next to each other).
Numbered Steps to Reproduce Problem:
1)Output multiple hrefs attached to a img type outputs.
2)Mouse over the first half of the second outputted image and click to an unexpected bleed from the first href.
Code Snippet (if applicable) to Reproduce Problem:
mob/verb/hrefBleed(T as text)
src<<"<a href=?src=\ref[src];action=Message1;txt=T><IMG CLASS=\"icon\" SRC=\"\ref[src.icon]\"\></a><a href=?src=\ref[src];action=Message2;txt=T><IMG CLASS=\"icon\" SRC=\"\ref[src.icon]\"\></a><a href=?src=\ref[src];action=Message3;txt=T><IMG CLASS=\"icon\" SRC=\"\ref[src.icon]\"\></a>"
mob/Topic(href,href_list[])
var/t=href_list["txt"]
switch(href_list["action"])
if("Message1")
world<<"[src]: [t]]"
if("Message2")
world<<"[src] says [t]"
if("Message3")
world<<"[t]] - [src]"
Expected Results:
An similar result as to Click().
Actual Results:
hrefs bleeding into other images
Does the problem occur:
Every time? Or how often? Every time.
In other games? Not game-specific.
In other user accounts? Tested by others.
On other computers? See above.
When does the problem NOT occur?
When you place whitespace between the images, I imagine you could also include just text, though that wouldn't look well at all.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Never tested in previous version, I swore there was a topic about this a year or two ago, but I couldn't find anything in the handful of searches I did.
Workarounds:
Place whitespace between images/hrefs.