[ticket/12862] Resize popups consistently

PHPBB3-12862