Skip to content

$inview not recalculated after initially seen and height added. #121

Description

@doelgonzo

I found an issue with the $inview initial value.

I have a box with a spinner in it while data is loading. There is a div that triggers $inview changes at the bottom of what will be a long list.

When done loading, the page shows an overlay footer on the page, and change its class when $inview is true. (i.e. background white when not in view, background gray when getting to the bottom of the list, so div is in view).

The problem is, the div that triggers $inview to change starts off inside the screen, making it be true. When the data finishes loading, it renders and pushes the div outside of the viewport. However, $inview doesn't seem to change to be false. It does change as soon as there is any tiny scrolling event. Is there something I can call to make $inview recalculate?

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