If it is same for both orientations then this would be enough:
height: mainView.height / 3.25