Module:Location map: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 318: Line 318:
elseif position == 'bottom' then -- specified bottom
elseif position == 'bottom' then -- specified bottom
builder:addClass('pv'):cssText('top:' .. distance .. 'px;left:' .. (-label_width / 2) .. 'em')
builder:addClass('pv'):cssText('top:' .. distance .. 'px;left:' .. (-label_width / 2) .. 'em')
elseif position == 'left' or (tonumber(x) > 70 and position ~= 'right') then -- specified left or autodetected to left
builder:addClass('pl'):cssText('right:' .. distance .. 'px')
else -- specified right or autodetected to right
else -- specified right or autodetected to right
builder:addClass('pr'):cssText('left:' .. distance .. 'px')
builder:addClass('pr'):cssText('left:' .. distance .. 'px')