com-lihaoyi / scalatags

ScalaTags is a small XML/HTML construction library for Scala.
https://com-lihaoyi.github.io/scalatags/
MIT License
758 stars 117 forks source link

element.style.height returns no value #141

Closed ThijsBroersen closed 7 years ago

ThijsBroersen commented 8 years ago

I am trying to dynamically adjust the size of component by using the height some other component. It looks like the scalatags element.style.height property does not return any value (the element is rendered and added to the dom)?! When I use jQuery $(element).height I do get the correct value.

lihaoyi commented 7 years ago

This isn't a Scalatags problem; this is just how javascript works