mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 16:35:33 +00:00
Note: build.sh updated to make sure that test:help build action:target doesn't also call test.sh by adding `:_all` meta-target. Note: CI will need a new help-keyman-com.sh build step to deploy web engine help. Fixes: #12347
30 lines
479 B
Markdown
30 lines
479 B
Markdown
---
|
|
title: getAbsolute
|
|
---
|
|
|
|
## Summary
|
|
|
|
Get the absolute position of an element.
|
|
|
|
## Syntax
|
|
|
|
```c
|
|
keyman.util.getAbsolute(Pelem);
|
|
```
|
|
|
|
### Parameters
|
|
|
|
`Pelem`
|
|
: Type: `Element`
|
|
: An HTML element.
|
|
|
|
### Return Value
|
|
|
|
`Object`
|
|
: An object with two `number` properties (`x` and `y`) corresponding to the specified element's absolute position on the page.
|
|
|
|
## Description
|
|
|
|
See also:
|
|
- [`keyman.util.getAbsoluteX()`](getAbsoluteX)
|
|
- [`keyman.util.getAbsoluteY()`](getAbsoluteY)
|