diff --git a/kivy/uix/gridlayout.py b/kivy/uix/gridlayout.py index fabe95230..0aedb7dd1 100644 --- a/kivy/uix/gridlayout.py +++ b/kivy/uix/gridlayout.py @@ -359,10 +359,10 @@ class GridLayout(Layout): rows_sh[row] = nmax(rows_sh[row], shh) if shh_min is not None: has_bound_y = True - rows_sh_min[col] = nmax(rows_sh_min[col], shh_min) + rows_sh_min[row] = nmax(rows_sh_min[row], shh_min) if shh_max is not None: has_bound_y = True - rows_sh_max[col] = nmin(rows_sh_max[col], shh_max) + rows_sh_max[row] = nmin(rows_sh_max[row], shh_max) self._has_hint_bound_x = has_bound_x self._has_hint_bound_y = has_bound_y