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

Commit

Permalink
Fix issue with tips dimensions switching unnecessarily.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jun 30, 2012
1 parent fc2bc4f commit 9de9508
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dist/jquery.qtip.basic.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Mon Jun 18 08:06:12 2012 -0700
* Date: Mon Jun 18 16:09:30 2012 +0100
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down
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: Mon Jun 18 08:06:12 2012 -0700
* Date: Mon Jun 18 16:09:30 2012 +0100
*/

/* Core qTip styles */
Expand Down
7 changes: 3 additions & 4 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: Mon Jun 18 08:06:12 2012 -0700
* Date: Mon Jun 18 16:09:30 2012 +0100
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -2829,9 +2829,8 @@ function Tip(qTip, command)
};

function swapDimensions() {
var temp = size.width;
size.width = size.height;
size.height = temp;
size.width = opts.height;
size.height = opts.width;
}

function resetDimensions() {
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.qtip.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/jquery.qtip.min.js

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions src/tips/tips.js
Expand Up @@ -76,9 +76,8 @@ function Tip(qTip, command)
};

function swapDimensions() {
var temp = size.width;
size.width = size.height;
size.height = temp;
size.width = opts.height;
size.height = opts.width;
}

function resetDimensions() {
Expand Down

0 comments on commit 9de9508

Please sign in to comment.