For some reason when i view a topic the page extends really far out to the right. It just started today. I was wondering if anyone else was having this issue. I am using Chrome in XP.
Duct tape is like the Force. It has a dark side, a light side, and it binds the whole universe together.
Ernest Friedman-Hill
author and iconoclast
Marshal
This happens for particular topics if someone uses a "code" block and enters code with really, really long lines. Are you seeing this on jsut certain threads, or on every page?
That thread was messed up because the code samples had some super long lines. I've edited the code to fix it somewhat, although it's still pretty wide. Still you should see an improvement. Anyway, it's not you -- it's just wide code.
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12612
posted
0
Indeed... this is an irritation of mine, when people don't bother looking at the code they've posted to see how it's screwing everything up :/
If we put some max height and width properties on the code blocks, with the right overflow, this would never be an issue (assuming code tags are used).
Yeah, this should probably be done. At least put in an hscroll, although honestly I'd be happier if it was just cut off so people would be forced to format their code in a quasi-reasonable way.
Cody Long
Ranch Hand
Joined: Jan 01, 2009
Posts: 95
posted
0
Ernest Friedman-Hill wrote:That thread was messed up because the code samples had some super long lines. I've edited the code to fix it somewhat, although it's still pretty wide. Still you should see an improvement. Anyway, it's not you -- it's just wide code.
Yes, i do see an improvement. Thank you. And i agree that there should be a limit on the width of the code blocks. Personally i hate having lines that are longer that 100 characters, and i try to go alot less than that.