Index: trunk/extensions/ImageMap/ImageMap_body.php |
— | — | @@ -256,7 +256,6 @@ |
257 | 257 | $anchor = $imageNode->parentNode; |
258 | 258 | $parent = $anchor->parentNode; |
259 | 259 | $div = $parent->insertBefore( new DOMElement( 'div' ), $anchor ); |
260 | | - $div->setAttribute( 'style', 'position: relative;' ); |
261 | 260 | if ( $defaultLinkAttribs ) { |
262 | 261 | $defaultAnchor = $div->appendChild( new DOMElement( 'a' ) ); |
263 | 262 | foreach ( $defaultLinkAttribs as $name => $value ) { |
— | — | @@ -274,6 +273,8 @@ |
275 | 274 | $xpath = new DOMXPath( $domDoc ); |
276 | 275 | $magnify = $xpath->query( '//div[@class="magnify"]' ); |
277 | 276 | if ( !$magnify->length && $descType != self::NONE ) { |
| 277 | + $div->setAttribute( 'style', 'position: relative;' ); |
| 278 | + |
278 | 279 | # Add image description link |
279 | 280 | if ( $descType == self::TOP_LEFT || $descType == self::BOTTOM_LEFT ) { |
280 | 281 | $descLeft = 0; |