react-resizable
react-resizable copied to clipboard
draggableOpts position is not work
I want to set position and drag resize but it not work, how can I solve it
draggableOpts={{
position: { x: chart.get("x"), y: chart.get("y") },
scale: scale,
onDrag: (e, position) => {
this.props.setChart(
charts.map((item, ii) => {
if (index == ii) {
return item.merge({
x: position.x,
y: position.y
});
}
return item;
})
);
}
}}