Fix right panel resizing. fixes #11906
Merge pull request #2 from picturae/11906

Fix right panel resizing. fixes #11906