Updated Positioning Methods

Just altered a few things to do with the positioning methods as they were returning wrong values. The updated one will work for all widgets