anthonyalfimov / Stable-Delay

AU, VST3. A WIP delay/chorus/flanger plugin
GNU General Public License v3.0
5 stars 1 forks source link

ComboBox Popup doesn't move with the plugin window #12

Closed anthonyalfimov closed 3 years ago

anthonyalfimov commented 3 years ago

DAWs: Reaper 6.23 (ARM and Intel) [+], Logic 10.6.1 ARM and 10.5.1 Intel [+], HostingAU [+]

Open a combobox popup (preset list or FX type) and drag the plugin window. The popup doesn't move with the window.

anthonyalfimov commented 3 years ago

This is a known issue with JUCE. It appears that there's still no fix for this: JUCE Forum | ComboBox menu position JUCE Forum | ComboBox ModalCallbackFunction

However, there is a possible workaround that would make the popup move with the plugin window: JUCE Forum | ComboBox PopupMenu doesn’t disappear and is always on topJUCE Forum | Dismiss PopupMenu when focus changes

But, there are trade-offs with this workaround. Namely, the popup will be constrained to the plugin editor bounds. More importantly:

Closing the plugin while a popup menu is open does not dismiss the menu (on OSX) and causes a crash in most DAWs on both OSs.

Pretty bad, huh.

anthonyalfimov commented 3 years ago

Note: Valhalla DSP plugins just roll with it. Floaty popups.

anthonyalfimov commented 3 years ago

Fixed in JUCE 6.0.8. Popup window is dismissed when moving the plugin window.