From e30edaf0530f92f581e775fc9b6851b86e98aca0 Mon Sep 17 00:00:00 2001 From: Jack Phoenix Date: Tue, 9 Feb 2010 19:51:17 +0000 Subject: [PATCH] bug #19334: textarea jumps when editing longer articles in IE8 --- RELEASE-NOTES | 1 + includes/EditPage.php | 2 ++ skins/common/IE80Fixes.css | 9 +++++++++ 3 files changed, 12 insertions(+) create mode 100644 skins/common/IE80Fixes.css diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 40d0d2d2ac..a24a6245a9 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/EditPage.php b/includes/EditPage.php index e3bd3a4fbd..224764f01a 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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 index 0000000000..d20e518b1f --- /dev/null +++ b/skins/common/IE80Fixes.css @@ -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 -- 2.20.1