Skip to content

Commit bf894f6

Browse files
committed
Min width for grid cells
1 parent d1f2176 commit bf894f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/robotide/editor/grid.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def __init__(self, parent, num_rows, num_cols, popup_creator=None,
3636
self.SetDefaultRenderer(grid.GridCellAutoWrapStringRenderer())
3737
self._clipboard_handler = ClipboardHandler(self)
3838
self._history = _GridState()
39+
self.SetColMinimalAcceptableWidth(70)
3940
self.CreateGrid(num_rows, num_cols)
4041
self._popup_creator = popup_creator or PopupCreator()
4142
self.settings = settings
@@ -55,6 +56,7 @@ def write_cell(self, row, col, value, update_history=True):
5556
if update_history:
5657
self._update_history()
5758
self._expand_if_necessary(row, col)
59+
print self.GetCellSize(row, col)
5860
self.SetCellValue(row, col, value)
5961

6062
def _expand_if_necessary(self, row, col):

0 commit comments

Comments
 (0)