Use autoresizing masks instead of resize (which was removed in PM 2)