ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: Frenzie on March 23, 2022, 03:50:21 am

Title: Pre element generated by BBC [code] too short for single-line, causes scrolling
Post by: Frenzie on March 23, 2022, 03:50:21 am
Code: [Select]
This is a single line of something or other. 19.5px is too short. Removing my height attribute fixes the problem.
Title: Re: Pre element generated by BBC [code] too short for single-line, causes scrolling
Post by: Spuds on March 23, 2022, 01:54:32 pm
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.
Title: Re: Pre element generated by BBC [code] too short for single-line, causes scrolling
Post by: Frenzie on March 23, 2022, 02:02:29 pm
You had me worried there for a second, but it also seems to look fine without JS.