From da8ffb0a2fdc8965c31bed827441d77ce6fe45a9 Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Sun, 22 Aug 2010 00:46:26 +0200 Subject: [PATCH] Refix search --- gui/marketBrowser.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gui/marketBrowser.py b/gui/marketBrowser.py index acdff491f..715577daf 100644 --- a/gui/marketBrowser.py +++ b/gui/marketBrowser.py @@ -39,8 +39,7 @@ class MarketBrowser(wx.Panel): self.search = wx.SearchCtrl(p, wx.ID_ANY, style=wx.TE_PROCESS_ENTER) self.search.ShowCancelButton(True) sizer.Add(self.search, 1, wx.EXPAND) - currHeight = self.search.GetSize()[1] - p.SetMinSize((wx.SIZE_AUTO_WIDTH, currHeight + 3)) + p.SetMinSize((wx.SIZE_AUTO_WIDTH, 25)) self.splitter = wx.SplitterWindow(self, style = wx.SP_LIVE_UPDATE) @@ -86,7 +85,9 @@ class MarketBrowser(wx.Panel): self.marketView.Bind(wx.EVT_TREE_ITEM_EXPANDING, self.expandLookup) self.marketView.Bind(wx.EVT_TREE_SEL_CHANGED, self.selectionMade) - #Setup our buttons for metaGroup selection + # Setup our buttons for metaGroup selection + # Same fix as for search box on macs, + # need some pixels of extra space or everything clips and is ugly p = wx.Panel(self) box = wx.BoxSizer(wx.HORIZONTAL) p.SetSizer(box)