From 8ee2f651be83b1e24575cd1f7106b6afe2e1af8a Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Sat, 4 Sep 2010 20:15:54 +0200 Subject: [PATCH] Revert "Remove the call to GetTextExtents and try to align in another way (that won't crash macs)" This reverts commit 1a9517071ec4a4749b31d6bf3ecda9592b9ea462. --- gui/statsPane.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/statsPane.py b/gui/statsPane.py index 5e9e65723..6dcc2e1cb 100644 --- a/gui/statsPane.py +++ b/gui/statsPane.py @@ -453,12 +453,13 @@ class StatsPane(wx.Panel): box.Add(wx.StaticText(self.fullPanel, wx.ID_ANY, "%"), 0, wx.ALIGN_CENTER) box = wx.BoxSizer(wx.VERTICAL) + box.SetMinSize(wx.Size(self.getTextExtentW("WWWWk"), -1)) lbl = wx.StaticText(self.fullPanel, wx.ID_ANY, "0" if tankType != "damagePattern" else "") box.Add(lbl, 0, wx.ALIGN_CENTER) setattr(self, "labelResistance%sEhp" % tankType.capitalize(), lbl) - sizerResistances.Add(box, 1, wx.ALIGN_CENTER) + sizerResistances.Add(box, 0, wx.ALIGN_CENTER) # Resistances