Which preposition to use with shortness

of Occurrences 179%

When I went to inspect his room I was rather struck by the shortness of the beddidn't think his long legs could ever get into it.

in Occurrences 3%

But nevertheless nature herself has placed in our ears a power of judging of all superfluous length and all undue shortness in sounds, as much as of grave and acute syllables.

Which preposition to use with  shortness