Open diesl opened 4 years ago
Yep, that's odd. I can reproduce this in my local env, but only on some pages. sbadmin template seems susceptible to it. Needs some investigation, please leave it with me.
So I took a look at docs.html and was able to reproduce the offset issue as described by @diesl In this specific instance I noted:
I think that resetting the offset when hiding the highlight should do the trick?
was thinking something like, adding a reset before calling fadeOut(), at around line 135: so we take it from:
highlightHide: function(domElement, step)
{
domElement.fadeOut("slow")
}
to this?
highlightHide: function(domElement, step)
{
domElement.width(0).height(0).offset({top:0, left:0});
domElement.fadeOut("slow")
}
+1 for this bug fix... I don't know if it's the correct solution, but .. it works!
Sometimes, the offset calculation of the highlighted square is wrong. I am not sure why this is happening, but now I figured out how to reproduce it.
Steps to reproduce:
#intro