RSS Feed/News Sticky form submit rows are incorrectly positioned inside scrollable overlays

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
33,339
Points
823

Reputation:

Sticky form submit rows are incorrectly positioned inside scrollable overlays because FormSubmitRow only listens to window scrolling

Suggested fix:

Detect the closest .overlay-container listen to its scroll event and include its scrollTop when calculating the fixed row position

Diff:

Code:
diff --git a/js/xf/form.js b/js/xf/form.js
--- a/js/xf/form.js
+++ b/js/xf/form.js
@@ -1686,6 +1686,7 @@
 		winHeight: 0,
 		containerTop: 0,
 		containerBorderLeftWidth: 0,
+		overlayContainer: null...

Read more

Continue reading...
 
Status
Not open for further replies.
Top