# HG changeset patch # User Laurent Bessard # Date 1342175225 -7200 # Node ID 5df934c273e1ce0e059ce166e6ac0ab6dacc316b # Parent 8c098eb05498686ddd7f127a09eaf7e73d6db20d Fix bug browse button in special cell editors on Windows diff -r 8c098eb05498 -r 5df934c273e1 controls/DurationCellEditor.py --- a/controls/DurationCellEditor.py Sun Jul 08 17:48:38 2012 +0200 +++ b/controls/DurationCellEditor.py Fri Jul 13 12:27:05 2012 +0200 @@ -40,12 +40,13 @@ main_sizer.AddGrowableRow(0) # create location text control - self.Duration = wx.TextCtrl(self, style=wx.TE_PROCESS_ENTER) + self.Duration = wx.TextCtrl(self, size=wx.Size(0, -1), + style=wx.TE_PROCESS_ENTER) self.Duration.Bind(wx.EVT_KEY_DOWN, self.OnDurationChar) main_sizer.AddWindow(self.Duration, flag=wx.GROW) # create browse button - self.EditButton = wx.Button(self, label='...', size=wx.Size(30, 0)) + self.EditButton = wx.Button(self, label='...', size=wx.Size(30, -1)) self.Bind(wx.EVT_BUTTON, self.OnEditButtonClick, self.EditButton) main_sizer.AddWindow(self.EditButton, flag=wx.GROW) diff -r 8c098eb05498 -r 5df934c273e1 controls/LocationCellEditor.py --- a/controls/LocationCellEditor.py Sun Jul 08 17:48:38 2012 +0200 +++ b/controls/LocationCellEditor.py Fri Jul 13 12:27:05 2012 +0200 @@ -40,12 +40,13 @@ main_sizer.AddGrowableRow(0) # create location text control - self.Location = wx.TextCtrl(self, style=wx.TE_PROCESS_ENTER) + self.Location = wx.TextCtrl(self, size=wx.Size(0, -1), + style=wx.TE_PROCESS_ENTER) self.Location.Bind(wx.EVT_KEY_DOWN, self.OnLocationChar) main_sizer.AddWindow(self.Location, flag=wx.GROW) # create browse button - self.BrowseButton = wx.Button(self, label='...', size=wx.Size(30, 0)) + self.BrowseButton = wx.Button(self, label='...', size=wx.Size(30, -1)) self.BrowseButton.Bind(wx.EVT_BUTTON, self.OnBrowseButtonClick) main_sizer.AddWindow(self.BrowseButton, flag=wx.GROW)