Skip to content

If number of items is a multiple of number of columns, a useless break is created #16

@killergege

Description

@killergege

When the number of checkbox to create is a multiple of the number of columns, the extension generates a row break that is not used.

In my case (new HtmlListInfo(HtmlTag.vertical_columns, 3)), it creates an empty DIV. In some cases it can break the display.

The cause are the lines 371-376 in ListBuilder.cs. The following if statement should include a test to check that it's not the last item:

if (htmlwrap_rowbreak_counter == htmlWrapper.separator_max_counter)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions