Instead of getting the position, why not putting the dropdown menu into the 
same div with its button?

On Thursday, October 20, 2016 at 10:08:55 AM UTC+2, Jacky See wrote:
>
> I'm doing some dropdown UI where I would like to re-calculate position of 
> the element once it appeared on screen.
> Something like http://github.hubspot.com/drop/docs/welcome/
>
> While I can get the triggering element position on click, I'm thinking how 
> should get the offsetWidth/offsetHeight
> of the dropdown once it is shown and feed it back to update again. Any 
> idea?
>

-- 
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