Update position for dialog, let it auto size