Fixed bug scrollbar not displayed in CodeFileEditor VariablePanel when grid is to small to show all variables
authorLaurent Bessard
Thu, 16 May 2013 00:31:07 +0200
changeset 1152 0a8fbd2a00f7
parent 1151 38d6aaad8ffd
child 1153 5bdd82497925
Fixed bug scrollbar not displayed in CodeFileEditor VariablePanel when grid is to small to show all variables
editors/CodeFileEditor.py
--- a/editors/CodeFileEditor.py	Thu May 16 00:01:09 2013 +0200
+++ b/editors/CodeFileEditor.py	Thu May 16 00:31:07 2013 +0200
@@ -641,7 +641,7 @@
             setattr(self, name, button)
             controls_sizer.AddWindow(button, border=5, flag=wx.RIGHT)
         
-        self.VariablesGrid = CustomGrid(self, size=wx.Size(-1, 300), style=wx.VSCROLL)
+        self.VariablesGrid = CustomGrid(self, style=wx.VSCROLL)
         self.VariablesGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGE, self.OnVariablesGridCellChange)
         self.VariablesGrid.Bind(wx.grid.EVT_GRID_CELL_LEFT_CLICK, self.OnVariablesGridCellLeftClick)
         self.VariablesGrid.Bind(wx.grid.EVT_GRID_EDITOR_SHOWN, self.OnVariablesGridEditorShown)