Skip to content

SizePerPage dropdown reserves space even if not present #1818

Closed
@waynebrantley

Description

@waynebrantley

When the sizePerPage dropdwon is not shown on the pager, it sets the visibility of itself to hidden.

const dropDownStyle = { visibility: hidden ? 'hidden' : 'visible' };

This should be display:none. When using visibility, the element is not shown but the screen real-estate for that control is still reserved which results in a pager that is a good bit larger than it needs to be.

However, I also question why this control does not just return null if the drop down is hidden and not render anything at all.

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