Fixed: incorrect enableAutoHeight calculation

Fixing the viewerYOffset calculation caused enableAutoHeight to break; this reverts it to its behaviour before the viewerYOffset change.