moveable icon indicating copy to clipboard operation
moveable copied to clipboard

Padding for group target is wrong

Open MRJCrunch opened this issue 1 year ago • 2 comments

Environments

  • Framework name: N/A
  • Framework version: N/A
  • Moveable Component version: 0.51.1

Description

I'm using this property to move boundaries a little outside of the node

{padding: { left: 1, top: 1, right: 1, bottom: 1 }}

It works well for a single item image

but when I have a group of elements I see overlapping. Looks like that elements inside don't have a padding image

MRJCrunch avatar Aug 30 '23 10:08 MRJCrunch

@MRJCrunch

It is shown set to 1px in the group. If you increase the number, you can feel it.

daybrush avatar Sep 19 '23 18:09 daybrush

@daybrush

The padding applies to the parent control box, would be useful with a padding for specific child control boxes as well 🙏

https://codesandbox.io/p/sandbox/react-moveable-forked-7gqs7m

CleanShot 2024-01-03 at 14 48 44@2x

OskarAhl avatar Jan 03 '24 06:01 OskarAhl