From 17d04a7ba5b64279d7a19c4a0c50284153f17f00 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Mon, 8 Nov 2010 17:22:28 +0200 Subject: [PATCH] Note to self: never code before drinking coffee --- miniframe.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/miniframe.py b/miniframe.py index 2d5f64953..8be36fda9 100644 --- a/miniframe.py +++ b/miniframe.py @@ -422,8 +422,10 @@ class PFTabsContainer(wx.Window): if self.GetTabsCount() >0: if self.GetTabsCount() * tabMinWidth > self.tabContainerWidth: self.tabMinWidth = (self.tabContainerWidth - self.reserved) / self.GetTabsCount() + else: + self.tabMinWidth = tabMinWidth else: - self.tabMinWidth = 0 + self.tabMinWidth = 1 for tab in self.tabs: tab.SetSize( (self.tabMinWidth, self.height) ) self.CreateShadow()