bug #19334: textarea jumps when editing longer articles in IE8
authorJack Phoenix <ashley@users.mediawiki.org>
Tue, 9 Feb 2010 19:51:17 +0000 (19:51 +0000)
committerJack Phoenix <ashley@users.mediawiki.org>
Tue, 9 Feb 2010 19:51:17 +0000 (19:51 +0000)
RELEASE-NOTES
includes/EditPage.php
skins/common/IE80Fixes.css [new file with mode: 0644]

index 40d0d2d..a24a624 100644 (file)
@@ -747,6 +747,7 @@ comment from another wiki.
   $wgExtensionCredits is no longer sorted with sort() but rather used
   as it appears in extensions as was the case before r30117 where it
   was unintentionally sorted along with other fields.
+* (bug 19334) Textarea no longer jumps when editing longer articles in IE8
 
 == API changes in 1.16 ==
 
index e3bd3a4..224764f 100644 (file)
@@ -397,6 +397,8 @@ class EditPage {
                        $wgOut->includeJQuery();
                        $wgOut->addScriptFile( 'preview.js' );
                }
+               // Bug #19334: textarea jumps when editing articles in IE8
+               $wgOut->addStyle( 'common/IE80Fixes.css', 'screen', 'IE 8' );
 
                $permErrors = $this->getEditPermissionErrors();
                if ( $permErrors ) {
diff --git a/skins/common/IE80Fixes.css b/skins/common/IE80Fixes.css
new file mode 100644 (file)
index 0000000..d20e518
--- /dev/null
@@ -0,0 +1,9 @@
+/**
+ * Fixes textarea scrolling bug (bug #19334)
+ */
+#wpTextbox1 {
+       height: 390px;
+       width: 500px;
+       min-width: 100%;
+       max-width: 100%;
+}
\ No newline at end of file