Added methods for getting widget bounds including the margin