Resizing JSUI in a bpatcher
Hi everyone,
I'm trying to resize jsui object which is in a bpatcher when the bpatcher size change. I want that the jsui window size stay equal to the size of the bpatcher window.
I tried a solution (attached), and it's working when I create the bpatcher or if I copy/past the bpatcher in the parent. In this case, the new bpatcher control the jsui size in it, but the bpatcher create before will no longer control the size of "his" jsui object.
I'm certainly doing something wrong... (probably a stupid mistake).
Is anyone had an idea about this problem ?
Thank you in advance,
PG
That's a fun one:
create an instance of your bpatcher in a parent patcher
duplicate the bpatcher at least 2 times
select all bpatchers
click on the corner of one bpatcher and start dragging your mouse (so all bpatchers get resized)
what I can observe: at the beginning, every inner jsui get resized properly, but quickly they stop being resized , until there is just one that gets resized properly.
Delete everything and repeat the steps above.
I can observe that the order in which jsui stop being resized is never the same. At the end the only bpatcher that gets its inner jsui properly resized is never the same.
Looks like a bug to me.
Maybe MaxobjListener isn't meant to observe boxattr changes?