Fix vertical biasing of last window in grid not working when number of windows is odd

This commit is contained in:
Kovid Goyal
2018-05-17 23:42:37 +05:30
parent 2803e45380
commit 2931afa0ae

View File

@@ -523,7 +523,7 @@ class Grid(Layout): # {{{
attr = 'biased_cols'
else:
b = self.biased_rows
if nrows < 2:
if max(nrows, special_rows) < 2:
return False
bias_idx = row_num
layout_func = self.ylayout