Byteclaw / visage

Visage design system
https://visage.design
MIT License
12 stars 3 forks source link

[Popover/Popper] - allow to transform anchor origin #558

Closed michalkvasnicak closed 4 years ago

michalkvasnicak commented 4 years ago

Now we can only say where the anchor origin is, maybe we could add transformX and transformY to change the position. Like this:

[Placement.topLeft, { vertical: 'bottom', horizontal: 'left', transformY: 10 }];

Above mentioned adds 10 to anchor Y position for this specific placement.