[Bug #8647] now using getOrientation() to reliably determine portrait and landscape orientation.