MSFS Tool Bar panel.... possible to autosize it?

Is it possible to make a panel in the Tool Bar “autosize”. We display a lot of
information in the Tool bar and it’s dynamic. It would be nice to be able to
make the panel autosize since the layout changes due to the dynamic buttons.
Is there a way to do this? As you can see in the screen shot, the user needs
to manually drag the panel to accommodate all the buttons.

I had this working, though min/max size didn’t work. Try content-fit="true"
on the ingame-ui node. You’ll need to take care that your layout is ready
when the panel initializes or else it would have an incorrect size.

Thank you, we’ll try!

Alas, it didn’t work. Any other ideas?

For me also i had this working in that way

Hello @bb8 Unfortunately we have not implemented a method to automatically
resize panel. The sendUpdatePanelSize() method work for the height of the
panel but not for the width. You can try to use a minimal width big enough to
cover all cases or change your html code to make sure that there is a line
break when the text exceeds a certain length/ character count. Best Regards,

It would be useful to have some function to set the width, since lots of
content in a toolbar panel might be dynamic.

Have you found a way to set the panel size manually? I’m struggeling with the
same issue

How is sendUpdatePanelSize() used? I could use that method and it would be
enough for me.