Display and confine webix `window` view to a `scrollview` or `layout`

I have a use case where I need to display a number of window views within a scrollable area such that:

  1. the windows need to be confined to the scrollable area (either a scrollview or a layout within a scrollview).
  2. the windows need to move with the scrollview as it is scrolled, revealing windows that have been positioned off screen (below the fold).

Is this behavior possible using windows

Hello @mcmurphy510,
As a solution, you can draw the window inside the scrollview through the container property. Please check the next snippet:
https://snippet.webix.com/wao7qwqy

Hi @annazankevich ,

Thank you for your answer. It works great in terms of layout, however my windows also need to be movable. I can easily achieve that by applying move: true to the window config.

However, my scrollview is not at the top of the screen. There is a view above it in the outer layout, giving about a 100 px offset between the top of the screen and the scrollview. When I attempt to move a window it is nudged down by this offset. The offset becomes even bigger if I scroll the scrollview down or right.

Here’s a snippet to show what I’m talking about:
https://snippet.webix.com/p3pk6k31

How can I get Webix to compensate for this offset when moving windows while there’s a view above (or to the right) of the scrollview or when the scrollview itself is scrolled.

Thanks.