From 8c461d74c122b6c9331154a6a0d85a392c935322 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 2 Sep 2010 22:18:45 +0300 Subject: [PATCH] Dirty little hack in StatsPane:Resists:EHP to prevent unwanted resize of sizers EHP StaticText have fixed size(32) ^^ --- gui/statsPane.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/statsPane.py b/gui/statsPane.py index 03e28a6b7..675a1100b 100644 --- a/gui/statsPane.py +++ b/gui/statsPane.py @@ -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)