While I don't recall his actual height, I do recall that a lot of the basis for the Napoleon short jokes was from british propaganda during the napoleonic wars.
What what I read, this is the case. Another cause was the fact that french imperial units were longer than the british ones, so just saying his height in feet, without saying it was french feet, made him sound shorter than he actually was.