Added in scaling measurement when sizing to dom since getBoundingClientRect does not take this into account.