Yes you are right that it does not matter to the problem in hand as such and that needs to be solved but I was just wondering if perhaps you were addressing a css problem in the wrong way?
I often see people using js to tackle css problems when they don’t need to so it’s often the first question I ask
I’ll hand you back to @James_Hibbard as he may have heard of problems with resize and scroll. I was just trying to come at the problem from a different angle.
Sorry, Paul, but without a runnable example that demonstrates the problem and an open mind towards discuss best practices, andresb is making it quite difficult for us to help him.
stopPropagation() doesn’t take any arguments; now in JS this doesn’t matter as additional arguments will simply go nowhere, but they will still get evaluated, so what you’re effectively doing is callinglocation.reload() there.
As for the sample page, you might set up a basic page that just demonstrates that behaviour – if not for us, reproducing it might help you to pin the problem down.
That said, I concur with @PaulOB… reloading the page on resize just doesn’t seem right, and there is likely a much less obtrusive solution to your problem.