KNIME Server: Generic Javascript View - Prevent div from scrolling

Hi community,

i have a javascript view with two div’s inside. One should be a header div and the other a content div.
I try to prevent the header div from scrolling.
If i run the javascript view in KNIME local everything is fine, the header div stays always on top even when scrolling the content div.
If i deploy it to KNIME Server it did not work anymore.

Can anyone help me here. Is this possible?

Thank you in advance

Prevent div scrolling.knwf (5.7 KB)

Also if i put the Generic Javascript View into a component, the header div is not prevented from scrolling.

That is because when the view is embedded in a component or the WebPortal it actually lives in an iFrame that scrolls. You can give the content-class a fixed height and set overflow: scroll to have the header fixed.
Kind regards,

1 Like

Hi @AlexanderFillbrunn,

thanks that works.

One question. Can iturn of the scrolling of the iFrame?

I am afraid this is not possible, or at least I don’t know how to :-/
Kind regards,