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

Option Gravity #172

Open
akhlebus opened this issue Oct 17, 2013 · 0 comments
Open

Option Gravity #172

akhlebus opened this issue Oct 17, 2013 · 0 comments

Comments

@akhlebus
Copy link

akhlebus commented Oct 17, 2013

Example of usage:

$.each($notes, function(index, $note) {
  $note = $($note);
  var note = notes[$note.attr('index')];

  $note.find('.note').tipsy({
    className: 'notes-tipsy',
    trigger: 'hover',
    gravity: 's',
    html: false,
    title: $.proxy(function() { return note.Text.title(); }, this)
  });
});

Result is wrong. When you hover over last item tooltip is shown near the first item. When you hover over first item tooltip is shown near the last item.
If you change value of option gravity from 's' to 'n' then all is ok.

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

No branches or pull requests

1 participant