Properly check for maximum number of children

This commit is contained in:
Rapptz 2024-02-17 01:17:31 -05:00
parent 9345a2a1be
commit 76666fbcf4

View File

@ -320,7 +320,7 @@ class View:
or the row the item is trying to be added to is full.
"""
if len(self._children) > 25:
if len(self._children) >= 25:
raise ValueError('maximum number of children exceeded')
if not isinstance(item, Item):