Added a getComputedDimensions function to help with sizing