nih-plug icon indicating copy to clipboard operation
nih-plug copied to clipboard

How to make editor resizable?

Open peastman opened this issue 10 months ago • 3 comments

I use egui for my UI. How can I make it resizable? When I run the standalone version, the window cannot be resized. When I use it in Reaper, the FX window can be resized but the editor doesn't change when I do.

peastman avatar Feb 22 '25 17:02 peastman

Egui resizability was added with this commit: https://github.com/robbert-vdh/nih-plug/commit/91a0ff745e7c86c5a25a1afaa8279a52a3d0dcdd

tk70 avatar Apr 16 '25 12:04 tk70

Thanks! I tried wrapping my UI in a ResizableWindow. Here's what happens when I try to resize it (in Reaper on Mac).

https://github.com/user-attachments/assets/0b6b5c79-57b9-4dfa-92c5-233bafac5808

peastman avatar Apr 17 '25 15:04 peastman

I have a working window resize with iced here nih_plug_spectrum_analyser. I had to fork nih_plug_iced and baseview. Ultimately I exposed screen mouse location to be able to do it cleanly.

Cmdv avatar Nov 02 '25 20:11 Cmdv