Index: trunk/phase3/skins/common/shared.css |
— | — | @@ -780,6 +780,10 @@ |
781 | 781 | margin: 2px; |
782 | 782 | } |
783 | 783 | |
| 784 | +li.gallerybox div.thumb a.image img { |
| 785 | + vertical-align: text-top; |
| 786 | +} |
| 787 | + |
784 | 788 | div.gallerytext { |
785 | 789 | overflow: hidden; |
786 | 790 | font-size: 94%; |
Index: trunk/phase3/includes/ImageGallery.php |
— | — | @@ -156,11 +156,11 @@ |
157 | 157 | } |
158 | 158 | |
159 | 159 | /** |
160 | | - * Add an image at the beginning of the gallery. |
161 | | - * |
162 | | - * @param $title Title object of the image that is added to the gallery |
163 | | - * @param $html String: Additional HTML text to be shown. The name and size of the image are always shown. |
164 | | - */ |
| 160 | + * Add an image at the beginning of the gallery. |
| 161 | + * |
| 162 | + * @param $title Title object of the image that is added to the gallery |
| 163 | + * @param $html String: Additional HTML text to be shown. The name and size of the image are always shown. |
| 164 | + */ |
165 | 165 | function insert( $title, $html='' ) { |
166 | 166 | if ( $title instanceof File ) { |
167 | 167 | // Old calling convention |
— | — | @@ -286,14 +286,13 @@ |
287 | 287 | $imageParameters['alt'] = $nt->getText(); |
288 | 288 | } |
289 | 289 | |
290 | | - # Set both fixed width and height. Otherwise we might have problems |
291 | | - # with the vertical centering of images where height<line-size |
| 290 | + # Set both fixed width and min-height. |
292 | 291 | $thumbhtml = "\n\t\t\t". |
293 | | - '<div class="thumb" style="width: ' .($this->mWidths+30).'px; height: ' .($this->mHeights+30).'px;">' |
| 292 | + '<div class="thumb" style="width: ' .($this->mWidths+30).'px; min-height: ' .($this->mHeights+30).'px;">' |
294 | 293 | # Auto-margin centering for block-level elements. Needed now that we have video |
295 | 294 | # handlers since they may emit block-level elements as opposed to simple <img> tags. |
296 | 295 | # ref http://css-discuss.incutio.com/?page=CenteringBlockElement |
297 | | - . '<div style="margin:'.$vpad.'px auto;">' |
| 296 | + . '<div style="margin:'.$vpad.'px auto 0;">' |
298 | 297 | . $thumb->toHtml( $imageParameters ) . '</div></div>'; |
299 | 298 | |
300 | 299 | // Call parser transform hook |