Fixed weird scaling issues with padding and margins.