tether
tether copied to clipboard
Constraints `together` fail if attachment = targetAtachment
Hi.
When the element is positioned like "inside" a target, i.e. when attachment is the same as targetAttachment, Tether seems to fail flipping the elements
I expected this configuration
new Tether({
element: '.element',
target: '.target',
attachment: 'top left',
targetAttachment: 'top left',
constraints: [{
to: 'window',
attachment: 'together'
}]
});
on this page to:
- attach the
top rightcorner of the element to thetop rightcorner of the target, since with defaulttop left-top leftthe element goes beyond the window borders; instead it sticks to the defaulttop leftno matter what; - on vertical scroll Tether behaves really odd: it flips
top left-top lefttobottom left-bottom leftso that the element goes out of sight long before it should.
I should mention that the example is a modified examples/testbed/index.html from the repository. There at least horizontal flipping works while the vertical one fails the same way. Didn't study the code, but it might have something to do with the sizes of the target and the element.
is anybody addressing this issue?