Difference between revisions of "Module:Message box"

Jump to navigation Jump to search
20 bytes added ,  05:09, 3 October 2013
fix comment on image divs
>Mr. Stradivarius
(make invalid type errors depend on cfg.showInvalidTypeError)
>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.
             -- 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
Anonymous user

Navigation menu