sprotty icon indicating copy to clipboard operation
sprotty copied to clipboard

Hidden graph leads to unneeded scroll bar

Open srcnuzn-etas opened this issue 9 months ago • 1 comments

My webview has a scroll bar, which is not needed for my graph. It is the result of the hidden graph. Any idea, how to fix this, i.e., get rid of scrollbar due to hidden graph?

Image

Image

srcnuzn-etas avatar Feb 24 '25 07:02 srcnuzn-etas

This is the default CSS - can you check whether that's loaded?

https://github.com/eclipse-sprotty/sprotty/blob/aa21cc00da254f9c1bc6820400c4a503dc27890e/packages/sprotty/css/sprotty.css#L26-L31

If yes, could the parent layout cause the width and height settings to be ignored?

You can add your own CSS to .sprotty-hidden or its container to fix this.

spoenemann avatar Feb 28 '25 11:02 spoenemann