Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Dropdown direction issue on webkit #1016

Closed
@gaetansnl

Description

@gaetansnl

The problem is on this line (in uiselect directive), on Chrome (43) $document[0].documentElement.scrollTop return 0

 else if (offset.top + offset.height + offsetDropdown.height > $document[0].documentElement.scrollTop + $document[0].documentElement.clientHeight)

It works if i replace by

 else if (offset.top + offset.height + offsetDropdown.height > $document[0].body.scrollTop + $document[0].documentElement.clientHeight)

But it doesn't work anymore on Firefox now...

Anyone have this problem ?

EDIT :
window.pageYOffset work on both

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions