Yeah that is hard to do in Elm, best method would be to get the CSS to do it for you if at all possible, else fall back to a port.
On Tuesday, January 31, 2017 at 9:54:16 AM UTC-7, Rupert Smith wrote: > > > > On Tuesday, January 31, 2017 at 4:32:47 PM UTC, OvermindDL1 wrote: >> >> Probably the easier way would be to just get its new size when its >> content changes, you can Json.Decode it out of a custom event if you can >> somehow get it to fire an event, any event >> > > Yes, I can easily get its size if I can get it to fire an event. I just > wondered if someone knows a trick to make that happen? > > Otherwise its a port or rethinking the DOM or CSS a bit. > > >> (a port, or just grab it from the port?). >> >> Would it not be easiest to finagle the CSS to do what you want instead, >> or are you needing to know the size explicitly in code? >> > > -- 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.
