[Qgis-user] How to make HTML map tip size larger in QGIS 3.32
Adam Nielsen
a.nielsen at shikadi.net
Sat Aug 12 23:47:32 PDT 2023
Hi all,
Since upgrading to QGIS 3.32 the map tips are now working for me.
However the HTML formatting seems to have changed. I can adjust the
HTML to mostly work around it, however the one thing I can't figure out
how to do is to change the frame size so the popup itself appears
larger on the screen.
Previously I was putting a photo in the map tip with <img width="1024">
and it would open up in a map tip 1024 pixels wide, so I could clearly
see the whole photo.
Now, in QGIS 3.32, the map tip seems to be limited to a postage-stamp
sized box with scroll bars, so the image is the same size as before,
but now I have to scroll around and I can only see a tiny bit of the
photo at any one time.
I have tried using <style> tags and setting the 'body' element to have
a different width but this did nothing, and adding <html> and <body>
tags didn't do anything either. My <div> tags seem to have become
inline instead of "display: block" like they were previously so
something seems to have happened with the styling.
I've looked through the manual but can't find anything in there about
setting how large the map tip popup actually is. The information I
can find on Google only works for earlier QGIS versions where the tip
resized to fit the content, but this no longer appears to be the case.
How can I make the map tip closer to the 1024x768 size of my HTML
content, so I can see the full content without the map tip having any
scroll bars at all?
Thanks,
Adam.
More information about the QGIS-User
mailing list