Note to self: never code before drinking coffee

This commit is contained in:
HomeWorld
2010-11-08 17:22:28 +02:00
parent 37fa9e72d1
commit 17d04a7ba5

View File

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