Merge "(bug 260) Handle <pre> overflow automatically with a scroll bar"
authorTrevor Parscal <tparscal@wikimedia.org>
Fri, 20 Jul 2012 20:59:32 +0000 (20:59 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 20 Jul 2012 20:59:32 +0000 (20:59 +0000)
RELEASE-NOTES-1.20
skins/common/commonElements.css

index ed92593..fcbb531 100644 (file)
@@ -148,6 +148,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.
 * (bug 38024) ResourceLoader should not create empty stylesheets for modules
   that don't have stylesheets.
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 */