I was reviewing the phoneui framework’s postOrientationChange(orientation) function and there is not a direct way to access the current page in the phoneui api during orientation change. The next release 1.0.1 will include such a function. In the meantime set a variable for the current pageId and update it from the postTranstion function.
example:
var currentPageId = “page-1”; //or whatever your start page id is
function postPageTransition(newPageId) {
currentPageId = newPageId;
}
postOrientationChange(orientation) {
if (currentPageId == ‘aPageWithOrientationConcern’) {
//your page-specific orientation logic here
}
}
Wayne
Genuitec Mobile Team