Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: onepiece on April 23, 2009, 10:04:20 AM

Title: [3409][2.0 RC1][FF] Long Codes Widens Page
Post by: onepiece on April 23, 2009, 10:04:20 AM
When there is a code tag with long lines of code and a table around the post (like the Profile - Show Posts area with old style block menu), code tag widens the page and makes it a lot wide than it should be.

Attached a screen shot. You can also view the issue here:

http://www.simplemachines.org/community/index.php?action=profile;u=198898;area=showposts;start=300;theme=1

Note that, this only happens in Mozilla Firefox 3.
Title: Re: [2.0 RC1] Long Codes Widens Page
Post by: SleePy on April 26, 2009, 12:29:52 PM
Thanks,
Bug #3409: Long code blocks can break page layout in show posts (http://dev.simplemachines.org/mantis/view.php?id=3409)

Title: Re: [3409][2.0 RC1][FF] Long Codes Widens Page
Post by: karlbenson on April 27, 2009, 10:10:27 AM
Fixed in the svn.
Title: Re: [3409][2.0 RC1][FF] Long Codes Widens Page
Post by: onepiece on April 28, 2009, 02:43:58 AM
Any chance you give a clue on the fix then? Not sure how you were able to fix it with PersonalMessage.template.php.

Also note that this is not something only related to Show Posts page. If you have a table around the forum body, and there is a code tag with long lines of code in Message Display page, the same happens there too. So this is a global issue about code tags, possibly the white-space: nowrap it has.
Title: Re: [3409][2.0 RC1][FF] Long Codes Widens Page
Post by: karlbenson on April 28, 2009, 05:25:36 AM
I added to the <table> around line 163
style="table-layout: fixed;"

The td on line 298 - added width="5%"
Changed the width on line 301 from 75% to width="70%"
The td on line 304 - added width="25%"