Add a method to place the widget horizontally centered from its widget's parent.