fix vertical orientation in OnSaveInstanceState

Please add fix for saving orientation of panel.