Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Popup: fixed the order of the tolerance parameters. Fixes #4856 - Pop…

…up tolerance parameters in different order than documentation.
  • Loading branch information...
commit 2464e88fce04e532f92687fc5cb85ed6994077c1 1 parent 3659d20
@jaspermdegroot jaspermdegroot authored
Showing with 10 additions and 10 deletions.
  1. +10 −10 js/widgets/popup.js
View
20 js/widgets/popup.js
@@ -267,27 +267,27 @@ define( [ "jquery",
// The first value denotes top/bottom tolerance, and the second value denotes left/right tolerance
case 2:
- if ( !isNaN( ar[ 1 ] ) ) {
- tol.t = tol.b = ar[ 1 ];
- }
if ( !isNaN( ar[ 0 ] ) ) {
- tol.l = tol.r = ar[ 0 ];
+ tol.t = tol.b = ar[ 0 ];
+ }
+ if ( !isNaN( ar[ 1 ] ) ) {
+ tol.l = tol.r = ar[ 1 ];
}
break;
// The array contains values in the order top, right, bottom, left
case 4:
+ if ( !isNaN( ar[ 0 ] ) ) {
+ tol.t = ar[ 0 ];
+ }
if ( !isNaN( ar[ 1 ] ) ) {
- tol.t = ar[ 1 ];
+ tol.r = ar[ 1 ];
}
if ( !isNaN( ar[ 2 ] ) ) {
- tol.r = ar[ 2 ];
+ tol.b = ar[ 2 ];
}
if ( !isNaN( ar[ 3 ] ) ) {
- tol.b = ar[ 3 ];
- }
- if ( !isNaN( ar[ 0 ] ) ) {
- tol.l = ar[ 0 ];
+ tol.l = ar[ 3 ];
}
break;
Please sign in to comment.
Something went wrong with that request. Please try again.