Dirty little hack in StatsPane:Resists:EHP to prevent unwanted resize of sizers EHP StaticText have fixed size(32) ^^

This commit is contained in:
HomeWorld
2010-09-02 22:18:45 +03:00
parent 1ae846af0c
commit 8c461d74c1

View File

@@ -442,8 +442,7 @@ class StatsPane(wx.Panel):
box.Add(wx.StaticText(self.fullPanel, wx.ID_ANY, "%"), 0, wx.ALIGN_CENTER)
lbl = wx.StaticText(self.fullPanel, wx.ID_ANY, "0" if tankType != "damagePattern" else "")
lbl = wx.StaticText(self.fullPanel, wx.ID_ANY, "0" if tankType != "damagePattern" else "", wx.DefaultPosition, wx.Size(32,-1), wx.ALIGN_CENTER)
setattr(self, "labelResistance%sEhp" % tankType.capitalize(), lbl)
sizerResistances.Add(lbl, 0, wx.ALIGN_CENTER)