Sublime Forum

Increase/Modify panel height

#1

Hi.

I am writing a plugin for displaying an error list that are captured in the build process.
The results are shown in an panel created by create_output_panel()

Unfortunately the panel always resets the height and not much text is visible. So i always have to put up the horizontal “separator” for the panel and this is annoying.

Is it possible to resize the height (maybe by lines?)

Thanks for your help!

0 Likes

#2

As far as I’m aware there is no programmatic way to change the height of a panel. However, Sublime remembers the height of panels in the session information, so I would have expected that once you change the panel size it would be remembered.

Do you always name the panel with the same name when you create it?

0 Likes

#3

I already read thatn it should remember the height, but unfortunately it doesn’t.
Yes it has the same name everytime.

0 Likes

#4

Are you using projects? Maybe ST only remembers the height of panels in projects you saved (since the data is stored in the workspace file).

0 Likes

#5

I now solved it by erasing the text in the view instead of destroying the panel and recreating it.

0 Likes