danthedeckie / streetsign

HTML5 based Digital Signage software written in python. (github clone of bitbucket master repo)
GNU General Public License v3.0
38 stars 18 forks source link

font size fix for webkit browsers #12

Open daniel-lang opened 4 years ago

daniel-lang commented 4 years ago

For some unknown reason, external webpages shown in an iframe are moved up because of the dynamically calculated font size. This seems to only affect iframes and only Webkit based browsers (safari, epiphany,...). The fix for this to add an extra class to the container for the iframe which resets the font size to zero. Testing showed that it does not affect other engines or post types.

Screenshot before image This https://streetsign.readthedocs.io/ running in Epiphany 3.28.6

Screenshot after image

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 75.997% when pulling cd586d73e92294e686f1327ecd74ade12c6a984e on daniel-lang:fontsize into 883a1888ba6f6c657b3b5dc88131b147534ba399 on danthedeckie:master.