bartbutenaers / node-red-contrib-ui-svg

A Node-RED widget node to show interactive SVG (vector graphics) in the dashboard
Apache License 2.0
94 stars 27 forks source link

Scrollbars appear when area too small #8

Open bartbutenaers opened 5 years ago

bartbutenaers commented 5 years ago

When the area specified in the dashboard is too small to fit the entire drawing, scrollbars will appear.

This behaviour should somehow be configurable:

Don't know how to solve this at the moment.

Ashfaak commented 3 years ago

You could try setting overflow css properties: <body style="overflow: hidden">

bartbutenaers commented 3 years ago

Hi @Ashfaak, Thanks for the tip!!! I'm not sure whether the scrollbars still appear with the latest version (released about 4 days ago), because the css width and height are now set to 100%.
Did you respond here because you had an issue with the size in that version?

Ashfaak commented 3 years ago

Hi @bartbutenaers

I had this issue many months ago when I just started using this node. I worked around it by resizing the svg. Today I was trying to get around a paywall and found they used overflow: hidden to hide the scrollbars and remembered this "help wanted" issue. Glad you've got it sorted. Will update and test it out when I get a chance.

Cheers.