Add isScreenPortrait property in TitleBar to not rely on global property