Floating patcher with windom zoom does not recall zoom

distantnoise's icon

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):

  1. 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.

  2. The position of the floating window is also not restored properly and the window is at a different position as it was stored.

This is how it looks when saving ...

This is the restored state