Last modified: 2013-07-12 02:43:37 UTC
If a tour definition step has attachTo: '.NoSuchSelector', and the attachTo element isn't on the page, the tour is positioned in the center of the window (fine), but the guider still shows the position triangle pointing to the non-existent element. I think the problem is the missing attachTo only affects the CSS returned by _getAttachCss(), it should also affect the later _styleArrow() and also maybe the flip behavior. One workaround is for JS code to detect if the element is not present and modify the tour to either skip the step or not set position; another is to use the failStep property.
Change 72241 had a related patch set uploaded by Spage: Don't show position arrow if no attachTo found https://gerrit.wikimedia.org/r/72241
Change 72241 merged by Mattflaschen: Don't show position arrow if no attachTo found https://gerrit.wikimedia.org/r/72241