If you want it to autofit... then the html needs to be renderable at time of first rendering as is tries to use that to calculate the height needed. If data is then injected and (for example adds a line) then the height would grow but the template won't resize unless you refresh the page. (I did try letting it resize - but that goes mad if you have something rapidly updating a template). So ideally the initial contents needs to be the max size you want it to be...Also the algorithm to autofit may not be perfect so... happy to consider any bad examples to improve on.
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/0i_mPF7W3lE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CACXWFw%2Be5snKrKRq8w634BxkZdUGevif7A5zzQeu2MGnngxpdg%40mail.gmail.com.