vscode-elements / elements

Web component library for developing Visual Studio Code extensions
https://vscode-elements.github.io
MIT License
148 stars 27 forks source link

Scrollable to bottom #146

Closed qarlosalberto closed 2 months ago

qarlosalberto commented 2 months ago

How can I move a Scrollable element to the max bottom?

bendera commented 2 months ago

The component has a scrollMax property: https://vscode-elements.github.io/components/scrollable/api/#Properties_scrollMax You can combine it with the scrollPos:

const sc = document.querySelector('#my-scrollable');
sc.scrollPos = sc.scrollMax;
qarlosalberto commented 2 months ago

great! thank you very much