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

getTopOffset() should subtract scrollTop not add it. #3416

@jblas

Description

@jblas

While reading the code for getTopOffset() in jquery.mobile.fixheaderfooter.js I noticed that we are adding op.scrollTop to the top running total when we should be subracting it.

Luckily fixed headers/footers are only allowed in pages which are absolutely positioned at (0,0) within the viewport which means we never see the bug. This may change when we start supporting tablet UI patterns.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions