Skip to content

react-bootstrap-table2-overlay does not consider caption height #358

@mathiaswillburger

Description

@mathiaswillburger

When adding caption={....} to ReactBootstrapTable together with overlay={overlayFactory(...)} the overlay is not positioned correctly anymore.

The overlay top margin seems to be calculated by var headerDOM = wrapper.parentElement.querySelector('thead'); and masker.style.marginTop = window.getComputedStyle(headerDOM).height; but does not consider the height of a possible caption tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions