File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ranch Office and the fly likes Forum not displaying right Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "Forum not displaying right" Watch "Forum not displaying right" New topic
Author

Forum not displaying right

Cody Long
Ranch Hand

Joined: Jan 01, 2009
Posts: 95
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

Joined: Jul 08, 2003
Posts: 24166
    
  30

Hi Cody,

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?


[Jess in Action][AskingGoodQuestions]
Cody Long
Ranch Hand

Joined: Jan 01, 2009
Posts: 95
Only on certain threads, like this one.

So there is nothing wrong with what i am doing?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

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: 12617

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 :/
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

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).


GenRocket - A Test Data Generation Platform
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Forum not displaying right
 
Similar Threads
1 Question IQ test
Beta Mock Question - Session Bean Passivation
Environment entries
Spinach
26 Nov Riddle