Fix for broken vertical resize of prepared pages