# HG changeset patch
# User Laurent Bessard
# Date 1368657067 -7200
# Node ID 0a8fbd2a00f7c66121819365ff5018ed654ebcaa
# Parent  38d6aaad8ffd9353bbe914dfc4c33f20100d51d4
Fixed bug scrollbar not displayed in CodeFileEditor VariablePanel when grid is to small to show all variables

diff -r 38d6aaad8ffd -r 0a8fbd2a00f7 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)