Despite the "CSS attributes" page in the DM reference stating that the width and height attributes are applicable to images in maptext, they do not change how the image is displayed, unlike in output controls.
Numbered Steps to Reproduce Problem:
1. Define width and height parameters for the icon class
2. Add an image to maptext with an icon text macro
Code Snippet (if applicable) to Reproduce Problem:
mob
maptext_y = 32 ; maptext_width = 96
mob/Login()
..()
maptext = "Image: \icon['image.png']"
// add the following line to the style sheet of the map control
IMG.icon {width: 16px; height: 16px}
// or define the style directly in the code
maptext = "Image: <img style='width:16px;height:16px' src=\ref['image.png']>"
Expected Results: The image should be displayed according to the width and height values in the stylesheet, just as it works in any output control in the player’s skin.
Actual Results: The maptext displays the image at its original size.
Does the problem occur:
Every time? Yes.
Did the problem NOT occur in any earlier versions? I don't believe so.
Workarounds: Utilize icon operations to scale the images to the desired width and height before throwing them at maptext.