Skip to content

Commit

Permalink
Fix an if-statement in Drag.Move.
Browse files Browse the repository at this point in the history
  • Loading branch information
timwienk committed Oct 23, 2010
1 parent 8e0baae commit fddd052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Drag/Drag.Move.js
Expand Up @@ -55,7 +55,7 @@ Drag.Move = new Class({
var parentStyles,
parent = element.getOffsetParent();
var styles = element.getStyles('left', 'top');
if (parent && styles.left == 'auto' || styles.top == 'auto'){
if (parent && (styles.left == 'auto' || styles.top == 'auto')){
element.setPosition(element.getPosition(parent));
}
}
Expand Down

0 comments on commit fddd052

Please sign in to comment.