Fix vertical biasing of last window in grid not working when number of windows is odd
This commit is contained in:
@@ -523,7 +523,7 @@ class Grid(Layout): # {{{
|
|||||||
attr = 'biased_cols'
|
attr = 'biased_cols'
|
||||||
else:
|
else:
|
||||||
b = self.biased_rows
|
b = self.biased_rows
|
||||||
if nrows < 2:
|
if max(nrows, special_rows) < 2:
|
||||||
return False
|
return False
|
||||||
bias_idx = row_num
|
bias_idx = row_num
|
||||||
layout_func = self.ylayout
|
layout_func = self.ylayout
|
||||||
|
|||||||
Reference in New Issue
Block a user