Hello,
I am currently working on a dell craptop with a small screen estate, and I noticed a display glitch in the posts using FireFox (works semi_fine in IE 6).
Some posts (I think it involves replies) don't display correctly, the vertical alignment of the poster ID is not the same for all posts, especially when there is a very long quote in a post, which makes the replies quite hard to read (and create a lovely horizontal scrollbar).
There are two ways to fix this glitch :
Hope that helps,
Palad1
I am currently working on a dell craptop with a small screen estate, and I noticed a display glitch in the posts using FireFox (works semi_fine in IE 6).
Some posts (I think it involves replies) don't display correctly, the vertical alignment of the poster ID is not the same for all posts, especially when there is a very long quote in a post, which makes the replies quite hard to read (and create a lovely horizontal scrollbar).
There are two ways to fix this glitch :
- Client side: Install the GreaseMonkey extension as well as the phpBB NoStretch user script (www.userscripts.org) and map it to */showthread.php*
- Server Side: update the template / CSS . Here's what is causing the problem:
spans which have a "postbody" class and whose parent's class is not "quote" should be placed in aCode:<div style="overflow:auto;width=100%;class="postbody"><span...></span></div>
I guess the thing is the span does not trigger a reflow of the layout., whereas the div does.
Hope that helps,
Palad1
Code:
var posts = document.evaluate("//span[@class='postbody']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
var thisPost;
for (var i = 0; i < posts.snapshotLength; i++) {
thisPost = posts.snapshotItem(i);
if (thisPost.parentNode.className != 'quote'){
newPost = document.createElement('div');
newPost.style.overflow = 'auto';
newPost.style.width = '100%';
newPost.innerHTML = thisPost.innerHTML;
newPost.className = 'postbody';
thisPost.parentNode.insertBefore(newPost, thisPost);
thisPost.parentNode.removeChild(thisPost);
}
}