pierreguillot / Camomile

An audio plugin with Pure Data embedded that allows to load and to control patches
GNU General Public License v3.0
909 stars 65 forks source link

UI Element label positions change when plugin is loaded #151

Closed barnabywalters closed 4 years ago

barnabywalters commented 5 years ago

Mac OS 10.14.1 Pd v0.48.1, v0.49.0 DAW: Logic Pro X, also happens in Audacity Plugin format: AudioUnit Camomile v1.0.6

When I load a plugin created with Camomile in a DAW (Logic Pro X, Audacity), the labels of Puredata’s GUI elements (e.g. Number field, Canvas, Toggle) are offset differently to how they are when the UI patch is opened in Puredata.

For example, I have to offset the labels for the header canvas and the the UI elements in the “Transposition” section like this in Puredata:

Screenshot 2019-05-16 at 10 07 04

…so that they end up in the right place in Logic:

Screenshot 2019-05-16 at 10 06 35
pierreguillot commented 5 years ago

Yes, I noticed. I started to fix it but this part is a bit tricky...

korakios commented 5 years ago

I had to change the Margin of the canvas to "1" and labels are now shown correctly. But I have no clue why (I don't even know what 'Margin' is used for)

pierreguillot commented 5 years ago

Perhaps this could help:

Capture d’écran 2019-06-18 à 18 43 16
korakios commented 5 years ago

Although I understand the schematic,I think I should find some patches to see how margin interacts with the objects :)

pierreguillot commented 4 years ago

This should be fixed on dev/v1.0.7