auto zoom when patcher window is resized

freepoulite's icon

Hello

i've done this little patch it works well but there's two things I don't like about it

-the qmetro to get the size of the window (is there a way to get it only when the window is resized by the user?)

-when you resize the window it offset from the origin and you have to rescroll it manually to x,y origin (is there a message to [thispatcher] to reset the offset to 0,0 or is there's a way to unable scroll bars?)

thanks a lot

I'm not not really familiar with js but if it is the only way i will take it!

4576.zoomWindow.maxpat
Max Patch
freepoulite's icon

thank you a lot it works well

PB

klaus filip's icon

yeh !!
very useful!!
it took me a while to find the actual download...here is the direct link:
https://github.com/nicolasdanet/Grenadine/zipball/master
thanks mr danet !