Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
$.fn.offset only overrode now if iPad is present, rather than overrid…
Browse files Browse the repository at this point in the history
…ing anyway and checking in-method
  • Loading branch information
Craga89 committed Nov 3, 2010
1 parent f3015ad commit e1c7d8f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion dist/jquery.qtip.css
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Wed Nov 3 01:53:18 2010 +0000
* Date: Wed Nov 3 01:53:58 2010 +0000
*/

.ui-tooltip-accessible{
Expand Down
11 changes: 4 additions & 7 deletions dist/jquery.qtip.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Wed Nov 3 01:53:18 2010 +0000
* Date: Wed Nov 3 01:53:58 2010 +0000
*/

"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
Expand Down Expand Up @@ -1405,13 +1405,10 @@ $.each({

/* iPad offset fix - See trac ticket: http://bugs.jquery.com/ticket/6446#comment:1
*/
offset: function() {
offset: !$.fn.qtip.isiPad ? NULL : function() {
var result = $(this).Oldoffset();

if($.fn.qtip.isiPad) {
result.top -= window.scrollY;
result.left -= window.scrollX;
}
result.top -= window.scrollY;
result.left -= window.scrollX;

return result;
}
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e1c7d8f

Please sign in to comment.