Keep in mind though that the correlation, while very highly statistically significant and replicated over many data sets, is not very strong: at r = 0.2, the r^2 is 0.04, so only 4% of variance in intelligence is explained by height. Thus, it is not clear whether the height-IQ correlation plays significant role as a confounder in the study above.
But I'm saying something much simpler. In a school class, there's another effect, that the oldest may be a year or more older than the youngest. The mix of ages in a classroom will produce a correlation all by itself. It seems to me this would be a much bigger effect: 7th-graders are quite a bit taller, and better on tests, than 6th-graders.
Given that, i doubt height measured at any one (age)point during childhood strongly correlates with iq. You'd need sufficient data to be able to reliably predict height as an adult for that, would be my guess.
More directly to your question, yes, as I said in my previous comment, the effect is very real, and is not driven by some outliers. There have been dozens studies on this, with Ns in tens of thousands. Wikipedia has a sample of them: https://en.wikipedia.org/wiki/Height_and_intelligence