In my use case I'm centering pep elements with CSS transform (-50%, -50%), and positioning them absolutely using percentages (I'm doing this outside the plugin). Adding the following changes makes sure that while the elements stay in their relative position while resizing window or parent, they also work nicely with the constraint-option. Without these changes, this doesn't work well. I'm using this option with useCSSTranslation set to false, but it seems to override nicely when set to true.
In my use case I'm centering pep elements with CSS transform (-50%, -50%), and positioning them absolutely using percentages (I'm doing this outside the plugin). Adding the following changes makes sure that while the elements stay in their relative position while resizing window or parent, they also work nicely with the constraint-option. Without these changes, this doesn't work well. I'm using this option with useCSSTranslation set to false, but it seems to override nicely when set to true.