Report #115815 shows a time where our calculation of rows and columns should also include the category name lines. The code was calculating where to break not including these and is too short if it has a category. Pull Request: https://projects.blender.org/blender/blender/pulls/115822