bug 899511 : [System] Resize popup window correctly