[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [FIX] datepickers: Include the scrollTop when adjusting top position...
"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]> Mon, 06 Jul 2026 16:05:18 +0000
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a4bd23e69f6d_3863e048949bc@gitlab-sidekiq-low-urgency-cpu-bound-v2-757cb76464-8slhf.mail> |
Jonny Bradley pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki
Commits:
d84a2bff by jonnybradley at 2026-07-06T17:04:53+01:00
[FIX] datepickers: Include the scrollTop when adjusting top position calculation so you can see the picker dialog again (disappointing regression from !8984 and maybe !5025, thanks @jyhem)
- - - - -
1 changed file:
- lib/jquery_tiki/tiki-jquery.js
Changes:
=====================================
lib/jquery_tiki/tiki-jquery.js
=====================================
@@ -1065,10 +1065,10 @@ function positionPickerNearInput(input, $dpDiv) {
var top;
if (inputBottom + pickerH <= scrollTop + viewportH) {
// enough room below → place below
- top = inputBottom;
+ top = inputBottom - scrollTop;
} else {
// not enough room below → flip above
- top = inputOffset.top - pickerH;
+ top = inputOffset.top - pickerH - scrollTop;
}
$dpDiv.css({ top: top, left: inputOffset.left });
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/d84a2bffbc4a3482de1db534dcaf815e6d827689
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/d84a2bffbc4a3482de1db534dcaf815e6d827689
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs