Add fixes for getBoundingClientRect bugs