Changes

no edit summary
Line 11: Line 11:  
local NodeInfo = BaseTable({
 
local NodeInfo = BaseTable({
 
     _item_class = EnemyShip,
 
     _item_class = EnemyShip,
     _table_start = [[{|class="wikitable" style="width:690px" data-number-of-formations="%s"]],
+
     _table_start = [[{|class="wikitable" style="width:690px" style="margin-bottom:%spx"]],
 
     _header_template = [[!#
 
     _header_template = [[!#
 
!Formation
 
!Formation
Line 466: Line 466:  
     end
 
     end
 
   
 
   
     table.insert(self._rows, string.format(self._table_start, self._number_of_formations))
+
local bottom_margin = 500 - (50 * 2 + 50 * self._number_of_formations + 15 * 2 + 30)
 +
     table.insert(self._rows, string.format(self._table_start, bottom_margin))
 
     table.insert(self._rows, self._header)
 
     table.insert(self._rows, self._header)
 
end
 
end
cssedit, gkautomate
7,064

edits