Hello Huy
It actually does mean "finding the size", because the next sentence is "Professor Binns had asked for a three foot long composition on “The Medieval Assembly of European Wizards." and the next one is "“I don't believe it, I'm still eight inches short....” said Ron furiously"