Last modified: 2012-06-22 05:50:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T24060, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22060 - Use pre { overflow:auto } to avoid overprinting
Use pre { overflow:auto } to avoid overprinting
Status: RESOLVED DUPLICATE of bug 260
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.16.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-08 17:01 UTC by DaSch
Modified: 2012-06-22 05:50 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description DaSch 2010-01-08 17:01:41 UTC
I think pre tags should be formated through CSS with 
overflow: auto;
Now the text inserted into pre, when it is to long, breaks the page layout and creates a horizontal scroll

see also http://de.wikipedia.org/wiki/Wikipedia:VV#Langer_Pre-Text
Comment 1 David Göthberg 2010-01-09 05:51:43 UTC
Using style="overflow:auto;" breaks badly in many browsers. So it is better to not use it and instead manually line wrap the examples we put in <pre> tags to avoid making them to wide.
Comment 2 DaSch 2010-01-09 13:00:02 UTC
well but most users do not wrap manually and whole pages are "broken" because of this
Comment 3 Bawolff (Brian Wolff) 2010-01-10 07:54:15 UTC
Sometimes I don't want lines in <pre> to wrap.... If it was to introduce automated wrapping, it should be optional: <pre wrap='auto'> or something (pre is treated like an extension tag, and not a literal html <pre> right?).

Also isn't there some work around for IE to make overflow:auto work? (position:relative or something)
Comment 4 Aryeh Gregor (not reading bugmail, please e-mail directly) 2010-01-10 18:07:07 UTC
(In reply to comment #1)
> Using style="overflow:auto;" breaks badly in many browsers.

Which browsers, and how does it break?  It could just be disabled for those browsers.  It appears to work exactly as desired in Chrome 4, Firefox 3.5, and Opera 10.10.  IE6 seems to treat it the same as overflow: visible, from a quick test, so it would just be the same as now.
Comment 5 Derk-Jan Hartman 2010-01-15 22:16:27 UTC
IE6 doesn't support it.

IE7 and 8 draws the scrollbars INSIDE the contentbox (as the only browser, but per the HTML specification). So unless we know of a way to either make the contentbox for IE large enough to fit the scrollbar and have the content readable, this is indeed a tough one.
Comment 6 Bawolff (Brian Wolff) 2010-01-15 23:24:48 UTC
Well the obvious solution is to give a style rule in IEFixes
pre { padding-bottom: 2em}

(Currently padding is 1em, which is pretty big, and probably almost enough to hold the scroll bar. Perhaps it should be in pixels/absolute units, as i don't think scroll bars vary with font size).
Comment 7 Alexandre Emsenhuber [IAlex] 2010-04-05 17:38:45 UTC

*** This bug has been marked as a duplicate of bug 414 ***
Comment 8 Krinkle 2012-06-22 02:43:31 UTC

*** This bug has been marked as a duplicate of bug 260 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links