Compare commits
No commits in common. "722aecda39925cb9fd34dd65aa3ac877aa435600" and "f4aefbb200eab06f2b55899ee74f427a0d59510d" have entirely different histories.
722aecda39
...
f4aefbb200
@ -328,10 +328,8 @@ export const DrawPDFFields = (props: Props) => {
|
|||||||
) => {
|
) => {
|
||||||
const target = customTarget ? customTarget : event.currentTarget
|
const target = customTarget ? customTarget : event.currentTarget
|
||||||
const rect = target.getBoundingClientRect()
|
const rect = target.getBoundingClientRect()
|
||||||
|
const mouseX = event.clientX - rect.left //x position within the element.
|
||||||
// Clamp X Y within the target
|
const mouseY = event.clientY - rect.top //y position within the element.
|
||||||
const mouseX = Math.min(event.clientX, rect.right) - rect.left //x position within the element.
|
|
||||||
const mouseY = Math.min(event.clientY, rect.bottom) - rect.top //y position within the element.
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
mouseX,
|
mouseX,
|
||||||
@ -417,9 +415,6 @@ export const DrawPDFFields = (props: Props) => {
|
|||||||
}}
|
}}
|
||||||
labelId="counterparts"
|
labelId="counterparts"
|
||||||
label="Counterparts"
|
label="Counterparts"
|
||||||
sx={{
|
|
||||||
background: 'white'
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
{users
|
{users
|
||||||
.filter((u) => u.role === UserRole.signer)
|
.filter((u) => u.role === UserRole.signer)
|
||||||
|
@ -75,6 +75,7 @@
|
|||||||
bottom: -60px;
|
bottom: -60px;
|
||||||
min-width: 170px;
|
min-width: 170px;
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
|
background: #fff;
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user