| Index: trunk/phase3/skins/common/IE80Fixes.css |
| — | — | @@ -0,0 +1,15 @@ |
| | 2 | +/** |
| | 3 | + * Fixes textarea scrolling bug (bug #19334). The bug only occurs when a |
| | 4 | + * percentage width is given, so instead of width: 100%, use min-width: 100%; |
| | 5 | + * max-width: 100%. We also need to give a fixed width for the actual width |
| | 6 | + * property for the hack to work, although the actual value (500px here) ends |
| | 7 | + * up being ignored; min/max-width take precedence. |
| | 8 | + * |
| | 9 | + * More info: http://grantovich.net/posts/2009/06/that-weird-ie8-textarea-bug/ |
| | 10 | + */ |
| | 11 | +#wpTextbox1 { |
| | 12 | + height: 390px; |
| | 13 | + width: 500px; |
| | 14 | + min-width: 100%; |
| | 15 | + max-width: 100%; |
| | 16 | +} |
| Property changes on: trunk/phase3/skins/common/IE80Fixes.css |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| 1 | 17 | + native |
| Index: trunk/phase3/includes/EditPage.php |
| — | — | @@ -371,6 +371,8 @@ |
| 372 | 372 | if ( $wgUser->getOption( 'uselivepreview', false ) ) { |
| 373 | 373 | $wgOut->addModules( 'mediawiki.legacy.preview' ); |
| 374 | 374 | } |
| | 375 | + // Bug #19334: textarea jumps when editing articles in IE8 |
| | 376 | + $wgOut->addStyle( 'common/IE80Fixes.css', 'screen', 'IE 8' ); |
| 375 | 377 | |
| 376 | 378 | $permErrors = $this->getEditPermissionErrors(); |
| 377 | 379 | if ( $permErrors ) { |