Resizing dialogs janky with 'Automatic' label behaviour
#### Steps to reproduce:
<!-- Describe what you did (step-by-step) so we can reproduce: -->
- open inkscape
- drag / dock tabs
- resize right-hand panel
- opening command palette (it doesn't show up)
#### What happened?
doing any of this is wobbly on wayland and costs effort
#### What should have happened?
it works
#### Inkscape Version and Operating System:
- Inkscape Version: Inkscape 1.5-dev (2c2853423, 2024-07-06)
- Operating System: Ubuntu
- Operating System version: 22.04

issue