Floating patcher with windom zoom does not recall zoom
I need some help. I tried to fix the issue myself but can't figure a way to solve the issue. Thank you in advance.
I work on a couple of M4L devices with floating window and a zoom-able UI. For the zooming part I use a piece of code (js ps.window_zoom.js) I've found here https://cycling74.com/forums/how-to-scale-a-ui-acording-to-window-size
Now I run into two issues (see images for a better understanding):
The zoom-factor is not restored properly. After re-loading a Live set the main window is resized properly but not the UI-elements. I need to change the zoom-factor after loading to get the UI-elements also resized.
The position of the floating window is also not restored properly and the window is at a different position as it was stored.


You need to store the zoom factor and window position when closing the patch, and then bang the zoom factor and position upon reopening.
This should help: