00311: Fix horizontal scrolling of long preformatted lines.

Summary: Fix horizontal scrolling of long preformatted lines.
Created: 2005-02-01 09:58
Status: Closed - IE bug
Category: Feature
From: Pm
Priority: 3
Version: 2.0.beta20

Description: When someone creates a long preformatted text line in a page (either purposefully or accidentally), all of the other lines on the page expand to the width of the longest line, causing unwanted horizontal scrolling.

It would be nice if PmWiki could somehow alleviate this problem.

On Wed, Jan 26, 2005 at 11:18:32AM +0100, Hugo Fjelsted Alroe wrote: A while ago, I tried to use a css style that gives a scrollbox if the preformatted text is too long for the space on the page. I simply put pre{overflow:auto;} - or a more elaborate version like: pre{border-style:solid; border-width:1px; padding-left:2px; width:80%; overflow:auto; } - in the css file.

I think the pre{overflow:auto;} should be standard in pmwiki if it were not for an inadequacy of MS Internet Explorer to show these boxes in a proper fashion. When a scrollbar is added at the bottom this takes up space inside the box so the last line is hidden - and hence a vertical scrollbar is also needed. This looks especially bad when there is only one line, because then the text in the box is hidden ... (see e.g. [(approve links) edit diff] ). Opera and Mozilla works just fine with respect to scrollboxes.

I tried the above in an earlier version of PmWiki and gave up on it because of aforementioned inadequacy of MSIE. However, it's worth revisiting. --Pm

Unfortunately, it looks as though IE might not fix this particular problem anytime soon. At any rate, for now I'm leaving it up to individual skins to resolve the issue, so this item is now closed.