Fix for first column fracked up size

This commit is contained in:
HomeWorld
2010-11-15 18:49:41 +02:00
parent ebed3f3858
commit 97c2c51457
3 changed files with 5 additions and 3 deletions

View File

@@ -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 = ""

View File

@@ -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)):

View File

@@ -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):