Prevent text wrapping in pane headers.

This fixes #9442.