http://www.mediawiki.org/wiki/Special:Code/MediaWiki/68824

Revision: 68824
Author:   platonides
Date:     2010-07-01 09:48:53 +0000 (Thu, 01 Jul 2010)

Log Message:
-----------
(bug 16886) Sister projects box moves down the extract of the first result in 
IE 7.

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES
    trunk/phase3/includes/specials/SpecialSearch.php

Added Paths:
-----------
    trunk/phase3/skins/common/IE70Fixes.css

Modified: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES  2010-07-01 09:22:56 UTC (rev 68823)
+++ trunk/phase3/RELEASE-NOTES  2010-07-01 09:48:53 UTC (rev 68824)
@@ -250,6 +250,7 @@
 * (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 ===
 

Modified: trunk/phase3/includes/specials/SpecialSearch.php
===================================================================
--- trunk/phase3/includes/specials/SpecialSearch.php    2010-07-01 09:22:56 UTC 
(rev 68823)
+++ trunk/phase3/includes/specials/SpecialSearch.php    2010-07-01 09:48:53 UTC 
(rev 68824)
@@ -368,6 +368,9 @@
                $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 @@
                }
 
                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";
 

Added: trunk/phase3/skins/common/IE70Fixes.css
===================================================================
--- trunk/phase3/skins/common/IE70Fixes.css                             (rev 0)
+++ trunk/phase3/skins/common/IE70Fixes.css     2010-07-01 09:48:53 UTC (rev 
68824)
@@ -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;
+}



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to