File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
import * as React from "react" ;
2
- import Draggable , { DraggableEventHandler } from "react-draggable" ;
2
+ import Draggable , { DraggableEventHandler , DraggableProps } from "react-draggable" ;
3
3
import { Enable , Resizable , ResizeDirection } from "re-resizable" ;
4
4
import { flushSync } from "react-dom" ;
5
5
@@ -155,6 +155,7 @@ export interface Props {
155
155
disableDragging ?: boolean ;
156
156
cancel ?: string ;
157
157
enableUserSelectHack ?: boolean ;
158
+ dragPositionOffset ?: DraggableProps [ "positionOffset" ] ;
158
159
allowAnyClick ?: boolean ;
159
160
scale ?: number ;
160
161
[ key : string ] : any ;
@@ -600,6 +601,7 @@ export class Rnd extends React.PureComponent<Props, State> {
600
601
resizeHandleWrapperStyle,
601
602
scale,
602
603
allowAnyClick,
604
+ dragPositionOffset,
603
605
...resizableProps
604
606
} = this . props ;
605
607
const defaultValue = this . props . default ? { ...this . props . default } : undefined ;
@@ -648,6 +650,7 @@ export class Rnd extends React.PureComponent<Props, State> {
648
650
scale = { scale }
649
651
allowAnyClick = { allowAnyClick }
650
652
nodeRef = { this . resizableElement }
653
+ positionOffset = { dragPositionOffset }
651
654
>
652
655
< Resizable
653
656
{ ...resizableProps }
You can’t perform that action at this time.
0 commit comments