There isn't yet a pure-Elm way to do it, but there's a bunch of discussion 
going on right now about adding setScrollTop and similar functions 
(see https://groups.google.com/forum/#!topic/elm-dev/ThkWudq7SF0). In the 
meantime the answer is likely 'use ports'.

On Tuesday, 19 July 2016 09:27:58 UTC+10, Wayne Choi wrote:
>
> I want to scroll down to the bottom of a div for, what else, a chat app. 
> Right now I'm using element.scrollTop = element.scrollHeight  and it works 
> fine with just javascript and html. Once I port the div to Elm, however, 
> the function doesn't scroll all the way down. Am I missing something with 
> how javascript interacts with the virtual dom? Is there an alternative 
> solution? 
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to