Module:Chessboard: Difference between revisions

Content deleted Content added
Add more height:18px to try to address Chrome bug
Actually, it looks like the problem is that the height should be the same as the piece size?
Line 53:
if ( letters_tp ) then b = b .. letters_row(rev, numbers_lt, numbers_rt) .. '\n' end
b = b .. '<tr style="vertical-align:middle">'
if ( numbers_lt ) then b = b .. '<td style="heightwidth:18px;widthheight:18px' .. size .. 'px">' .. (rev and 1 or 8) .. '</td>' end
b = b .. '<td colspan=8 rowspan=8><div class="chess-board" style="position:relative;">'
b = b .. string.format('[[File:Chessboard480.png|%dx%dpx|link=]]', 8*size, 8*size)
Line 69:
end
b = b .. '</div></td>'
if ( numbers_rt ) then b = b .. '<td style="heightwidth:18px;widthheight:18px' .. size ..'px">' .. (rev and 1 or 8) .. '</td>' end
if ( numbers_lt or numbers_rt ) then
for trow = 2,8 do
local row = rev and trow or (9 - trow)
b = b .. '<tr style="vertical-align:middle">'
if (numbers_lt) then b = b .. '<td style="height:18px' .. size .. 'px">' .. row .. '</td>' end
if (numbers_rt) then b = b .. '<td style="height:18px' .. size .. 'px">' .. row .. '</td>' end
b = b .. '</tr>\n'
end