Module:Message box: Difference between revisions
fix comment on image divs
m>Mr. Stradivarius (make invalid type errors depend on cfg.showInvalidTypeError) |
m>Mr. Stradivarius (fix comment on image divs) |
||
Line 435: | Line 435: | ||
if self.imageCellDiv then | if self.imageCellDiv then | ||
-- If we are using a div, redefine imageLeftCell so that the image is inside it. | -- If we are using a div, redefine imageLeftCell so that the image is inside it. | ||
-- | -- Divs use style="width: 52px;", which limits the image width to 52px. If any | ||
-- images in a div are wider than that, they may overlap with the text or cause | |||
-- other display problems. | |||
imageLeftCell = imageLeftCell.tag('div').css('width', '52px') | imageLeftCell = imageLeftCell.tag('div').css('width', '52px') | ||
end | end |