Panel: Truncate and move to left: 0 while closed

This solution is similar to how we hide the popup

(cherry picked from commit 9e73ab40ac88d796104a837b1ed06aa583822dcb)

Closes gh-7809
Fixes gh-7807