From 5090a97978365bfbc799f12a6f7ef8ce3401b855 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 19 Nov 2010 12:31:26 +0200 Subject: [PATCH] Revert "Remove stuff that makes wxGTK die (why the fuck ?)" This reverts commit 0f8aa0cfb42ac6c25016269cb27e42815b24b25b. --- gui/fittingView.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/fittingView.py b/gui/fittingView.py index 30d42f146..947e180d3 100644 --- a/gui/fittingView.py +++ b/gui/fittingView.py @@ -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()