Fix: Positioning of close button in dock-to-right mode.