The same tricks from this line to line 370 should play at portrait mode.