07-13-2021, 08:19 PM
(07-13-2021, 07:05 PM)remkonoteboom Wrote: The double scrollbars was indeed a headache and we were trying all sorts of mechanism to get rid of this. This was especially bad when you resized the window so you have to have these global onResize events.
... however, this problem has been largely eliminated with newer css capabilities using calc. Of course the VFX plugin hasn't quite moved to this yet. You still need to know the exact size of headers for this to work, but you would do
bvr.src_el.setStyle("height", "calc(100vh - 100px)")
as an example. This dynamically calculates what the height should be and can be used to eliminate the double sidebars even on resize of windows.
Great, did some test using css calc and it works mush better, thanks.
I pushed it to the same test branch (4.8-sticky-headers)