Size of a popup window with a datatable inside

Hi,
I have a popup window with a datatable inside. The size of the popup adjusts according to the size of the datatable inside, which is what I want.

However, if there are too many rows in the datatable the popup grows outside the screen. Is there a way to let the popup grow only to a maximum height and then make the datatable inside scrollable?

Please see the example below to see the problem
https://snippet.webix.com/py0yd5hr

I got something that’s pretty close but it looks like for popups with more components in them this doesn’t work properly: Code Snippet

Hello @romant1 ,
I can’t repeat descride issue. At least inside nothing should change from occupied height by other components .
Can you share a snippet or a demo link where problem can be checked?