Skip to content

CalcHeightOnResize not working for non-window parent #166

Description

@elitenoire

I'm using a parent other than the window object and noticed the inline height is not calculated when resizing the browser window.

React-Headroom attaches the resize event handler to the parent prop but I've read that the resize event fires only on the window.

Hence, I implemented this (attached a resize handler to the window object) in my code base and the inline height gets recalculated.

The problem now is that, React-Headroom overrides the height style set in the wrapperStyle prop, so no way to use the new height.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions