projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
20000: Change process cancel button to button style
[arvados-workbench2.git]
/
src
/
components
/
popover
/
helpers.ts
diff --git
a/src/components/popover/helpers.ts
b/src/components/popover/helpers.ts
index f2be98cfdaf69bd3c7eaaae61ab8c76a4a6b723d..ac860ac08f1bdc823898fbf1e557296e7685a669 100644
(file)
--- a/
src/components/popover/helpers.ts
+++ b/
src/components/popover/helpers.ts
@@
-6,7
+6,10
@@
import { PopoverOrigin } from "@material-ui/core/Popover";
export const createAnchorAt = (position: {x: number, y: number}) => {
const el = document.createElement('div');
export const createAnchorAt = (position: {x: number, y: number}) => {
const el = document.createElement('div');
- const clientRect = {
+ const clientRect: DOMRect = {
+ x: position.x,
+ y: position.y,
+ toJSON: () => '',
left: position.x,
right: position.x,
top: position.y,
left: position.x,
right: position.x,
top: position.y,