It seems, that editor tutorial's arrow (which should be under the edit pencil) is rendered before all page actions are enabled, which results in a false position of it (see image).
Description
Details
Related Objects
- Mentioned In
- rEGAT277afc3c25c2: Prevent tutorial from showing if user clicks watchstar prior to load
rEGATd1ab1955bcf9: Article reader sees guidance about creating a collection
rMEXT9ff9a5db611b: Updated mediawiki/extensions Project: mediawiki/extensions/Gather…
rMEXT2522d8d7b5ed: Updated mediawiki/extensions Project: mediawiki/extensions/MobileFrontend…
rEMFR1a14c5729a5e: Fixes to the page action tutorial
rEMFR356b665a52dc: Center ContentOverlay arrow alignment on element
rMEXT0f3fb218986d: Updated mediawiki/extensions Project: mediawiki/extensions/MobileFrontend…
rMEXT193886d4b400: Updated mediawiki/extensions Project: mediawiki/extensions/MobileFrontend…
rEMFR5f9e74b989f5: Make page action overlay pointer position correctly.
rMEXT36213e35607f: Updated mediawiki/extensions Project: mediawiki/extensions/Gather…
rMEXT3e05bd01f64a: Updated mediawiki/extensions Project: mediawiki/extensions/MobileFrontend…
rEMFR51065d7d5996: Correct the arrow position of the editor tutorial
Event Timeline
Change 194574 had a related patch set uploaded (by Bmansurov):
Correct the arrow position of the editor tutorial
That's how it looks on pages with bannerImages :/ They normally get loaded after the page is rendered and most of Javascripts are eecuted. This should be fixed, too.
Good catch, then we should listen to the editor icon location changes. Simply listening to window.resize won't do it.
Change 194574 merged by jenkins-bot:
Correct the arrow position of the editor tutorial
I've reverted the patch. Stable is okay now, but beta and alpha have positioning problems @rmoen should hopefully be able to fix this.
So @rmoen and I chatted about this. The issue is BannerImage causes the window to resize as the image pushes the rest of the content down.
Both BannerImage and the PageActionOverlay subscribe to the resize event, but the BannerImage event runs before the PageActionOverlay resize event so the latter never positions correctly.
Baha's patch solved the above by simply refreshing every second.
I wonder if we could do the above but turn off the timeout when the top is the same as last time.
Also the _position function doesn't seem quite right in beta and alpha and probably needs revisted.
Change 199155 had a related patch set uploaded (by Jdlrobson):
Make page action overlay pointer position correctly.
Change 199155 merged by jenkins-bot:
Make page action overlay pointer position correctly.
Mm.. this still seems problematic in alpha & beta
See http://en.m.wikipedia.beta.wmflabs.org/wiki/Albert_Einstein?mobileaction=beta with local storage cleared
http://i.imgur.com/sh01DuJ.png
Mmm.. the positioning seems to have no method to its madness. Here are some tests I just ran...
For watchstar:
beta: push left by 18px
alpha: pushed up by 60px, push left by 18px
For edit guider (must be logged in)
Stable: needs to be pushed left -204px http://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Albert_Einstein&mobileaction=stable&article_action=signup-edit&welcome=yes
Beta: needs to be pushed left by -52px [http://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Albert_Einstein&mobileaction=beta&article_action=signup-edit&welcome=yes]
Alpha: pushed up by 40px, pushed right by 8px [http://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Albert_Einstein&mobileaction=alpha&article_action=signup-edit&welcome=yes]
Change 199795 had a related patch set uploaded (by Robmoen):
In beta, watchstar loads late and is edit tut is positioned incorrectly
Also related patch https://gerrit.wikimedia.org/r/#/c/199747/ for centering the arrow on the element.
@rmoen turns out my issue was chrome specific when the star is green.. see... https://phabricator.wikimedia.org/T93987
This works but please see my follow up for other edge cases.
Change 199812 had a related patch set uploaded (by Jdlrobson):
Fixes to the page action tutorial
Change 199795 abandoned by Robmoen:
In beta, watchstar loads late and is edit tut is positioned incorrectly