Prevent text wrapping in pane headers.

This fixes #9442.
Done. Thanks @TomMalbran