How to change/make palette window size dynamic

Hello,

I am writing a small plugin that is supposed to have window in the palette bar.
Everything works fine except for when there is too much text for the standard palette window. Text is just cut off and I struggle to find a way to make the palette either scrollable, resizable or responsive to the content.
All three of these options would be fine, but cut off text is not ideal.

I used the example file from the glyphs sdk and testing in cutting edge version.

Thanks,
daniel

How do you build the UI? Vanilla or Xcode?

Scrolling could be achieved by using a text view instead of a text field.

I can answer with more detail later.

So far I have been using Xcode, but that didn’t really work out. Changing the file in a text editor or Xcode did not change the palette.

When you edit the .xib file, you always need to compile it into a .nib file. This is explained in the readme files.

And I updated the template code to make it easier to build resizable panels.

That means manually resizable panels. I would avoid automatically resizing panels. It would make the whole sidebar to jump around all the time. That is probably too distracting. But if you have a valid use case, I’ll add a sample of it.

It is explained in the readme, that was an oversight on my end. compiling to .nib now works without problems.

The manual resizing however doesn’t work 100% yet.
I see the indicator that it is resizeable, but it won’t move when I click and drag with the mouse.

In xcode I see the panel window and the textfield. I increase the size of the text field to match the size of the panel window in xcode and compile the .nib.

I added a min and maxHeight like in your example to the plugin.py, and I can change the size of the panel in xcode now, but in glyphs it’s still not resizable resulting in cut of text.

I would avoid automatically resizing panels. It would make the whole sidebar to jump around all the time.

Agreed, manually resizing is perfectly fine if it works.

Can you show the plugin code?