Border styling interferes with scaling of popup
See original GitHub issueNot sure if this is considered unsupported but it still seems like unintended behavior: if you add a small border using the css border property for the popup in the script, or use the css styling in the configuration window, the popup will have empty space below it which increases as you increase the border size. With fit to window
enabled, It is visible even with a 1px border, but a 10px border illustrates the issue better. Besides this issue with extraneous padding on the bottom of the popup, the border seems to be applied properly and evenly around the image.
EDIT: The behavior is different for large images scaled down and smaller images scaled up: for smaller images scaled to the window, the bottom of the popup is actually cut off.
I guess that ultimately the scaling algorithm just needs to take into account the added width and height from the popup border before doing its work?
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (8 by maintainers)
Top GitHub Comments
Well, I don’t have a preference on this since I believe this is a bug in FF so let’s revert. Maybe you can find a different dpi value that hides the bug.
I still don’t understand so you’ll have to implement it yourself in a way that makes sense to you and present a convincing use case.