(bug 16886) Sister projects box moves down the extract of the first result in IE 7.
authorPlatonides <platonides@users.mediawiki.org>
Thu, 1 Jul 2010 09:48:53 +0000 (09:48 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Thu, 1 Jul 2010 09:48:53 +0000 (09:48 +0000)
RELEASE-NOTES
includes/specials/SpecialSearch.php
skins/common/IE70Fixes.css [new file with mode: 0644]

index ed7f06d..4e8d5ab 100644 (file)
@@ -250,6 +250,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 24089) Logevents causes PHP Notice if leprop=title isn't supplied
 * (bug 23473) Give description of properties on all modules
 * (bug 24136) unknownerror when adding new section without summary, but forceditsummary
+* (bug 16886) Sister projects box moves down the extract of the first result in IE 7.
 
 === Languages updated in 1.17 ===
 
index 408371f..9254098 100644 (file)
@@ -368,6 +368,9 @@ class SpecialSearch {
                $wgOut->setRobotPolicy( 'noindex,nofollow' );
                // add javascript specific to special:search
                $wgOut->addScriptFile( 'search.js' );
+
+               // Bug #16886: Sister projects box moves down the first extract on IE7  
+               $wgOut->addStyle( 'common/IE80Fixes.css', 'screen', 'IE 7' );
        }
 
        /**
@@ -608,7 +611,7 @@ class SpecialSearch {
                }
 
                wfProfileOut( __METHOD__ );
-               return "<li>{$link} {$redirect} {$section} {$extract}\n" .
+               return "<li><div class='mw-search-result-heading'>{$link} {$redirect} {$section}</div> {$extract}\n" .
                        "<div class='mw-search-result-data'>{$score}{$size} - {$date}{$related}</div>" .
                        "</li>\n";
 
diff --git a/skins/common/IE70Fixes.css b/skins/common/IE70Fixes.css
new file mode 100644 (file)
index 0000000..d9e3ff8
--- /dev/null
@@ -0,0 +1,12 @@
+/**
+ * Fixes sister projects box moving down the extract 
+ * of the first result (bug #16886).
+ * It only happens when the window is small and 
+ * This changes slightly the layout for big screens 
+ * where there was space for the extracts and the 
+ * sister projects and thus it showed like in any 
+ * other browser.
+ */
+.searchresult {
+       display: inline;
+}