I was all wrong about height. I'll comment on that bit of the code ...