#1875: Fix bug when resizing pinned dialog