Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created December 19, 2012 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/4340190 to your computer and use it in GitHub Desktop.
Save tmcw/4340190 to your computer and use it in GitHub Desktop.
from
if ((_tooltipOffset.height + eo.y) >
(_contextOffset.top + _contextOffset.height) &&
(_contextOffset.height > _tooltipOffset.height)) {
eo.y -= _tooltipOffset.height;
tooltip.className += ' flip-y';
}
to
if (true || (_tooltipOffset.height + eo.y) >
(_contextOffset.top + _contextOffset.height) &&
(_contextOffset.height > _tooltipOffset.height)) {
eo.y -= _tooltipOffset.height;
tooltip.className += ' flip-y';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment