Revert "Remove the call to GetTextExtents and try to align in another way (that won't crash macs)"

This reverts commit 1a9517071e.
This commit is contained in:
cncfanatics
2010-09-04 20:15:54 +02:00
parent c571bcb450
commit 8ee2f651be

View File

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