Hi stefano,

from within the render method it should be possible to access the parent if 
I recall correctly,

could you post a bit of code to work with?

 

> 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
>
> [email protected] <javascript:>
> 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 [email protected].
To post to this group, send email to [email protected].
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/dbda1e52-33d9-46c7-b401-5eb659ae8f9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to