fixes setTitlePosition in PanelHeader