mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-11 16:58:14 +00:00
Merge "Account for scroll offset when using non-mouse positioning"
This commit is contained in:
commit
3cf45dd5ab
BIN
resources/dist/index.js
vendored
BIN
resources/dist/index.js
vendored
Binary file not shown.
BIN
resources/dist/index.js.map.json
vendored
BIN
resources/dist/index.js.map.json
vendored
Binary file not shown.
|
@ -381,7 +381,7 @@ export function createLayout(
|
|||
// Position according to link position or size
|
||||
measures.offset.top + measures.height + pointerSize,
|
||||
offsetLeft;
|
||||
const clientTop = measures.clientY ? measures.clientY : offsetTop;
|
||||
const clientTop = measures.clientY ? measures.clientY : offsetTop - measures.scrollTop;
|
||||
|
||||
if ( measures.pageX ) {
|
||||
if ( measures.width > maxLinkWidthForCenteredPointer ) {
|
||||
|
|
Loading…
Reference in a new issue