Fix for first column fracked up size
This commit is contained in:
@@ -6,9 +6,9 @@ from eos.types import Drone, Fit, Module, Slot
|
||||
|
||||
class BaseIcon(ViewColumn):
|
||||
name = "Base Icon"
|
||||
def __init__(self, fittingView, params, defaultSize = 16):
|
||||
def __init__(self, fittingView, params):
|
||||
ViewColumn.__init__(self, fittingView)
|
||||
self.size = defaultSize
|
||||
self.size = 16
|
||||
self.maxsize = self.size
|
||||
self.mask = wx.LIST_MASK_IMAGE
|
||||
self.columnText = ""
|
||||
|
||||
@@ -28,7 +28,7 @@ class State(ViewColumn):
|
||||
def __init__(self, fittingView, params):
|
||||
ViewColumn.__init__(self, fittingView)
|
||||
self.resizable = False
|
||||
self.size = 20
|
||||
self.size = 16
|
||||
self.maxsize = self.size
|
||||
self.mask = wx.LIST_MASK_IMAGE
|
||||
for name, state in (("checked", wx.CONTROL_CHECKED), ("unchecked", 0)):
|
||||
|
||||
@@ -74,6 +74,8 @@ class Display(wx.ListCtrl):
|
||||
info.m_format = wx.LIST_FORMAT_LEFT
|
||||
self.InsertColumnInfo(i, info)
|
||||
col.resized = False
|
||||
if i == 0:
|
||||
col.size += 4
|
||||
self.SetColumnWidth(i, col.size)
|
||||
|
||||
def getColIndex(self, colClass):
|
||||
|
||||
Reference in New Issue
Block a user