Panel: wait with calling positionPanel() until class ui-panel-close is removed.

This is a correction of commit 739e286 and prevents wrong min-height for the page (unnecessary scrollbar) because ui-panel-close has width 0.