redcapuzgent / redcap_customimagemap

GNU General Public License v3.0
4 stars 1 forks source link

Map areas are adding spaces below the imagemap #5

Closed dhinostroza closed 5 months ago

dhinostroza commented 5 months ago

Hi, Testing the Choir male body, a line is added below the image for each area within the map. You can see in the screenshot below that there is a lot of space underneath the image, even though only the areas for the frontal body have been mapped! If I manually remove the "empty" space using the rich text editor, I delete the area mappings. Is there a way of forcing the field to display a truncated height? Screenshot 2024-06-04 at 1 49 39 PM

steentje34 commented 5 months ago

Hi @dhinostroza, thanks for reaching out! This is a known issue, caused by the fact that REDCap replaces newlines in the code by BR elements. It can be resolved by removing newlines from the HTML code, as mentioned on the module's how to page:

Remove newlines from the HTML code. They are replaced by BR elements and ruin your syntax.

If you have any other questions or remarks, please do not hesitate to contact me.

dhinostroza commented 5 months ago

Thank you, Simon, Yes, that worked! For future readers, my mistake was that I was removing the newlines from the designer end-layout, and not from the field where the code was placed. Thus, the code in the imagemap field should be in a single line, like this: Screenshot 2024-06-05 at 9 18 55 AM