Panel: Truncate and move to left: 0 while closed

This solution is similar to how we hide the popup

Closes gh-7809
Fixes gh-7807