Fixes issue #25.

This commit is contained in:
Graeme Humphries 2014-05-23 14:32:24 -07:00
parent e45854e9a9
commit 7aa0249136

View File

@ -235,6 +235,9 @@ class CruSSH:
rows = int(math.ceil(num_terms / float(cols)))
if rows < 1:
rows = 1
# ensure we evenly distribute terminals per row.
cols = int(math.ceil(num_terms / float(rows)))
if (self.LayoutTable.props.n_columns != cols) or (self.LayoutTable.props.n_rows != rows) or force:
self.reflowTable(cols, rows)
self.MainWin.show_all()