Ive recently replied to someone else about resizing popups, its not the same as you, but maybe it helps