(bug 260) Handle <pre> overflow automatically with a scroll bar
authorTimo Tijhof <ttijhof@wikimedia.org>
Fri, 22 Jun 2012 03:33:49 +0000 (05:33 +0200)
committerTimo Tijhof <ttijhof@wikimedia.org>
Sat, 23 Jun 2012 09:15:55 +0000 (11:15 +0200)
And it took only 8 years!

* Ref:
 - bug 260
 - bug 414
 - bug 22060

Change-Id: Ica40812ae221cdc7926dcbe7f82e1cb1591ea1e2

RELEASE-NOTES-1.20
skins/common/commonElements.css

index 3c545ee..e79dce2 100644 (file)
@@ -125,6 +125,7 @@ upgrade PHP if you have not done so prior to upgrading MediaWiki.
   who don't have access to /tmp can specify an alternative.
 * (bug 27283) SqlBagOStuff breaks PostgreSQL transactions.
 * (bug 35727) mw.Api ajax() should put token parameter last.
+* (bug 260) Handle <pre> overflow automatically with a scroll bar.
 * (bug 37708) mw.Uri.clone() should make a deep copy.
 
 === API changes in 1.20 ===
index 02fd29f..903a4f7 100644 (file)
@@ -198,6 +198,12 @@ pre, .mw-code {
        border: 1px dashed #2f6fab;
        color: black;
        background-color: #f9f9f9;
+       /* Handle overflow (bug 260) */
+       overflow: auto;
+       /* IE 7 is the first IE to support overflow but got it wrong */
+       /* IE 8+ is fine */
+       *padding-bottom: 21px;
+       *overflow-y: hidden;
 }
 
 /* Tables */