Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected behavior when element is larger than target #271

Open
Justineo opened this issue Sep 25, 2017 · 0 comments
Open

Unexpected behavior when element is larger than target #271

Justineo opened this issue Sep 25, 2017 · 0 comments
Labels

Comments

@Justineo
Copy link

Justineo commented Sep 25, 2017

tether-mid

It's a case on http://tether.io/ with a little modification (I tweaked the size of the target element a little bit and made the window horizontally scrollable):

new Tether({
  element: yellowBox,
  target: greenBox,
  attachment: 'top left',
  targetAttachment: 'bottom left',
  constraints: [
    {
      to: 'window',
      attachment: 'together'
    }
  ]
});

As you can see, Tether isn't handling such constraint correctly on horizontal direction: it isn't flipping the element when there is enough space on the left when its right side is out of window's right border, and when it goes out of window's left border, it flipped unexpectedly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants