autosizing of popups now works