
Loading…
Element picker overlay on yahoo.com #344
pwstokes225
commented
gorhill
commented
I will note my observation here before I forget:
- The
bodyhas a top margin of 89px. Since the element picker installs itself as a child of thebody, it is being pushed down by that margin. Solution: set thesvgelementpositiontofixed. - The
offsetTopof thebodyis 0, meaning the mouse pointer mapping is offset. Solution: query the client bounding rect for thebodyelement and offset according thetopvalue (this may also solve other mapping issues reported somewhere else).
gorhill
commented
@Deathamns Are you referring to the use of Element.getBoundingClientRect() rather than offset[Something]?
Deathamns
commented
That probably solved the offset issue, the top margin for the body is fixed by adding the pickerRoot to the documentElement instead of the body element.
gorhill
commented
@Deathamns Your fix works very well.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The overlay does not appear to cover the top of the page where the logo and search box are located.
This seems to occur specifically on https://au.yahoo.com/, https://hk.yahoo.com/ and https://nz.yahoo.com/.