I have tabpanel on tab change previous tab losing it’s scroll position when revisit same.
Hello @webix_B_123,
By default, when you switch between tabs, the scroll position is not saved.
As a solution, you can use onAfterScroll
event to save the x/y position:
var scPos = $$("mylist").getScrollState(); // returns data as ({x:30,y:200})
var posx = scPos.x; // 30
var posy = scPos.y; // 200
and handle onChange
event to define scroll position:
$$("mylist").scrollTo(posx ,posy)
Please check the snippet:
https://snippet.webix.com/etbxrbyu