Steffen
Well-known member
- Affected version
- 2.0.10
The "Click to expand..." link/button sometimes just doesn't appear and the quote block is cut-off midways. This is a race condition. I can reproduce the problem sometimes but not always, one of our users says that he can reliably reproduce the problem in the following example (both of us are using Chrome 70):
In my tests, I can fix this issue with the following patch:
It just increases the time span in which XenForo checks the scroll and offset height. It seems like this can be necessary for longer posts.
(A more robust solution could be to run the check until the "load" event fires, meanwhile exponentially increasing the check interval.)
- Open https://www.computerbase.de/forum/t...beispiel-zu-ac-origins.1829356/#post-21817619
- Search for the spoiler button labeled "Spoiler: Kurzanleitung RAM OC" and click it (maybe use Ctrl+F)
- Scroll down until you see two quote blocks
In my tests, I can fix this issue with the following patch:
Diff:
--- a/js/xf/core.js
+++ b/js/xf/core.js
@@ -5791,7 +5791,7 @@ if (window.jQuery === undefined) jQuery = $ = {};
if (scroll == 0 || offset == 0)
{
- if (delay > 1000)
+ if (delay > 2000)
{
return;
}
It just increases the time span in which XenForo checks the scroll and offset height. It seems like this can be necessary for longer posts.
(A more robust solution could be to run the check until the "load" event fires, meanwhile exponentially increasing the check interval.)
Last edited: