* (bug 34768) Set width and height for search-ltr.png (and search-rtl.png) in Vector...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 29 Feb 2012 20:02:42 +0000 (20:02 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 29 Feb 2012 20:02:42 +0000 (20:02 +0000)
<img> in <button> didn't have width or height set.

skins/Vector.php

index cee8c0e..5a596c3 100644 (file)
@@ -430,11 +430,11 @@ class VectorTemplate extends BaseTemplate {
                <?php if ( $wgVectorUseSimpleSearch && $this->getSkin()->getUser()->getOption( 'vector-simplesearch' ) ): ?>
                <div id="simpleSearch">
                        <?php if ( $this->data['rtl'] ): ?>
-                       <?php echo $this->makeSearchButton( 'image', array( 'id' => 'searchButton', 'src' => $this->getSkin()->getSkinStylePath( 'images/search-rtl.png' ) ) ); ?>
+                       <?php echo $this->makeSearchButton( 'image', array( 'id' => 'searchButton', 'src' => $this->getSkin()->getSkinStylePath( 'images/search-rtl.png' ), 'width' => '12', 'height' => '13' ) ); ?>
                        <?php endif; ?>
                        <?php echo $this->makeSearchInput( array( 'id' => 'searchInput', 'type' => 'text' ) ); ?>
                        <?php if ( !$this->data['rtl'] ): ?>
-                       <?php echo $this->makeSearchButton( 'image', array( 'id' => 'searchButton', 'src' => $this->getSkin()->getSkinStylePath( 'images/search-ltr.png' ) ) ); ?>
+                       <?php echo $this->makeSearchButton( 'image', array( 'id' => 'searchButton', 'src' => $this->getSkin()->getSkinStylePath( 'images/search-ltr.png' ), 'width' => '12', 'height' => '13' ) ); ?>
                        <?php endif; ?>
                <?php else: ?>
                <div>