Skip to content

Commit

Permalink
Fix calendar dropdown positioning if page is scrolled.
Browse files Browse the repository at this point in the history
  • Loading branch information
KarimGeiger committed Aug 18, 2014
1 parent 3c8753b commit a71b57d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/Core/js/calendar.js
Expand Up @@ -185,9 +185,9 @@ var Horde_Calendar =
}

if (p.top + div.offsetHeight > vp.height) {
div.setStyle({ top: (vp.height - 10 - div.offsetHeight) + 'px' });
div.setStyle({ top: (window.pageYOffset + vp.height - 10 - div.offsetHeight) + 'px' });
} else {
div.setStyle({ top: p.top + 'px' });
div.setStyle({ top: (window.pageYOffset + p.top) + 'px' });
}
}

Expand Down

0 comments on commit a71b57d

Please sign in to comment.