The library I am adapting for a TW plugin builds a complex SVG structure inside a div and the basic parameter it uses to compute the layout is the width of the parent container it is inserted in, which it gets with:
parentWidth = parseFloat(getComputedStyle(container.parentElement).width) This of course does not work in the plugin's render function, where I instantiate the new div, because there is no parent yet and in fact there is no widget yet Is there any way to get the width of the widget to be as it is about to be inserted in the story river (or, even better in general)??Is it provided by the theme and is it accessible? Thanks for the help, S. __________________________________________________ Stefano Franchi stefano.fran...@gmail.com <stef...@tamu.edu> http://stefano.cleinias.org -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikidev+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywikidev@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/CAJODLwbqEPwvYSXP4kr060tQKsr-B%2BzmA0Qa7ya%3DQWSEfN8u7A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.