Revert "Remove stuff that makes wxGTK die (why the fuck ?)"

This reverts commit 0f8aa0cfb4.
This commit is contained in:
HomeWorld
2010-11-19 12:31:26 +02:00
parent 0f8aa0cfb4
commit 5090a97978

View File

@@ -383,8 +383,11 @@ class FittingView(d.Display):
for i in xrange(4):
wantedWidth += self.GetColumnWidth(i)
icount = self.GetItemCount()
irect = self.GetItemRect(0)
rect = self.GetRect()
rect.height -= 16
rect.height = min(irect.height * icount + irect.top, rect.height - 16)
rect.width = min(rect.width, wantedWidth)
mdc = wx.MemoryDC()