Fix page width bug when using landscape with enforced onecolumn layout.

The layout needs to be applied before switching to landscape.