View toggle visibility and adjust height

Hello dear webix team,
How can a view be programatically set to adjust to it´s parent view height?

See example: Code Snippet
If u click on a list item an edit area appears and if you click on the selected item again the edit area should be hidden and the list should be adjusted to it´s parent view height. I could achieve this by defining height to 100% but then the scroll functionality is gone.

Thanks for your help,
Michael

Hello @Mimu1988 ,
You could use zero values for autosizing: Code Snippet .
And if you need to maintain the scroll position, you could use getScrollState() and scrollTo(x,y): Code Snippet .

Thanks for your help