Resize HUD so the contents are fully visible

Fixes #1266.