Skip to main content
Pre element generated by BBC [code] too short for single-line, causes scrolling Started by Frenzie · · Read 4946 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

Pre element generated by BBC [code] too short for single-line, causes scrolling

Code: [Select]
This is a single line of something or other. 19.5px is too short. Removing my height attribute fixes the problem.

Re: Pre element generated by BBC [code] too short for single-line, causes scrolling

Reply #1

Interesting that one.  Looks like a very old bug actually.  That height was done via JS, but the logic had a comparison of a rounded number to a non rounder number, so edge cases (single line) were being set incorrectly.

Should be fixed now, browser refresh required.

 

Re: Pre element generated by BBC [code] too short for single-line, causes scrolling

Reply #2

You had me worried there for a second, but it also seems to look fine without JS.