Re: [twdev] Re: How to get the size of an upcoming widget in a plugin declaration?

2019-02-14 Thread stefano franchi
On Thu, Feb 14, 2019 at 5:35 AM Simon Huber wrote: > >> >> On Wed, Feb 13, 2019 at 5:06 PM Simon Huber >> wrote: >> >>> this is some basic information which I gathered by searching, reading > and trying ... > not everything must be necessarily correct, anyone, just correct me where > I

[twdev] Re: How to get the size of an upcoming widget in a plugin declaration?

2019-02-14 Thread PMario
Hi Stefano, The dynaview widget may give you some hints. see: https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/dynaview/dynaview.js -m -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and

Re: [twdev] Re: How to get the size of an upcoming widget in a plugin declaration?

2019-02-14 Thread Simon Huber
> > > > On Wed, Feb 13, 2019 at 5:06 PM Simon Huber > wrote: > >> >>> >>> On Wed, Feb 13, 2019 at 3:56 PM Simon Huber >>> wrote: >>> 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

Re: [twdev] Re: How to get the size of an upcoming widget in a plugin declaration?

2019-02-13 Thread stefano franchi
On Wed, Feb 13, 2019 at 5:06 PM Simon Huber wrote: > >> >> On Wed, Feb 13, 2019 at 3:56 PM Simon Huber >> wrote: >> >>> 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? >>> >

Re: [twdev] Re: How to get the size of an upcoming widget in a plugin declaration?

2019-02-13 Thread Simon Huber
> > > > On Wed, Feb 13, 2019 at 3:56 PM Simon Huber > wrote: > >> 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? >> >> > Well, it is all very rudimentary still, but the idea is

Re: [twdev] Re: How to get the size of an upcoming widget in a plugin declaration?

2019-02-13 Thread stefano franchi
On Wed, Feb 13, 2019 at 3:56 PM Simon Huber wrote: > 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? > > Well, it is all very rudimentary still, but the idea is the following: In my pl

[twdev] Re: How to get the size of an upcoming widget in a plugin declaration?

2019-02-13 Thread Simon Huber
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 lay