I have a TitleBar with several buttons. If the screen is not wide enough to fit the title and the buttons, it will rightly truncate the title, e.g. if the title is "My Long Title":


However, let's say the screen is in landscape mode and it can fit the whole title. Then, I hide the toolbar, rotate the device, and show the toolbar. Now it can't fit the whole title, but it is not updated so the title overlaps one of the buttons.

Is this a bug? Or if it's by design, then how I can I override the behavior so that it will update the toolbar when I show it?