tether icon indicating copy to clipboard operation
tether copied to clipboard

Switch offset when switching attachment as result of a constraint

Open codepunkt opened this issue 9 years ago • 3 comments

When using a constraint, e.g. together to switch both the attachments of element and target, the defined offset is not inverted.

Example element is positioned like a dropdown, 6px below the target.

new Tether({
  element: this.el,
  attachment: 'top center',
  target: this.target,
  targetAttachment: 'bottom center',
  offset: '-6px 0',
  constraints: [{ to: 'scrollParent', attachment: 'together' }]
});

When switching both attachments, for example to attachment bottom center and targetAttachment top center due to constaint, the target is not 6px above the target - which it should be.

codepunkt avatar May 22 '15 11:05 codepunkt

+1

ntdb avatar Jun 30 '15 23:06 ntdb

+1

darrenscerri avatar Jul 07 '15 14:07 darrenscerri

maybe anyone knows a workaround for this?


UPD. Found myself https://github.com/HubSpot/tether/issues/106#issuecomment-124054147

liubko avatar Jan 05 '18 17:01 liubko