Skip to content

A static select with multiple and no size is drawn one row tall instead of four #425

Closed

Description

@jakejackson1

With useActiveForms off, a <select multiple> without a size is drawn one row tall. HTML draws a multiple select as a list box four rows tall by default.

Cause. Tag\Select keeps size only when it is above 1 (src/Tag/Select.php:48-50), and the static height is size rows or 1. PR #419 fixed the active-form flags for a bare multiple (it now always gets MultiSelect and stays a list box). The static height still ignores it.

Expected. A multiple select with no size is laid out four rows tall, as in browsers. This changes layout for existing documents, so it may deserve a line in the upgrade notes. mpdf/mpdf development has the same code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcreate-upstream-pr

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions