Scroll to bottom

messageContainer.getElement().executeJs(“$0.scrollTo(0,$0.scrollHeight);”, messageContainer.getElement());

hi , i need make de scrooll bottom in this component named messageContainer.
But after migration to vaadin 24, is not working

Wrap it in a setTimeout function, highly possible it’s a timing issue.

If you happen to have actual messages in the container, how about just: lastMessage.scrollIntoView() :thinking:

BTW. What component is that “messageContainer”? Maybe that would need some new API :thinking: