Fix page rotation for unloaded pages.
Merge pull request #3970 from brendandahl/rotation

Fix page rotation for unloaded pages.