case of missing TitleView

When using a titleView instead of simple title in the navbar the
overlay view would cover it on rotation. Fixed with this commit.

if you find a better way please share :)