Module:Message box: Difference between revisions

Content added Content deleted
(make invalid type errors depend on cfg.showInvalidTypeError)
(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.
-- Not sure why only some box types use divs, but it probably has something to do
-- Divs use style="width: 52px;", which limits the image width to 52px. If any
-- with that style="width: 52px;". @TODO: find out exactly what this does and fix this comment.
-- 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