Ohalos14: 3
קָנֶה שֶׁעַל גַּבֵּי הַפֶּתַח, אֲפִלּוּ גָבוֹהַּ מֵאָה אַמָּה — מֵבִיא אֶת הַטֻּמְאָה כָּל שֶׁהוּא, דִּבְרֵי רַבִּי יְהוֹשֻׁעַ; רַבִּי יוֹחָנָן בֶּן נוּרִי אוֹמֵר: אַל יַחְמִיר זֶה מִן הַזִּיז.
A rod that is on top of a doorway, even if it is one hundred cubits high, spreads tu-mah no matter how narrow it is, these are the words of R’ Yehoshua. R’ Yochanan ben Nuri says: Do not treat this any stricter than a ledge.