Skip to content

Commit

Permalink
Remove tween option for the wrapper Element
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian committed Jan 27, 2010
1 parent 0f5bfc7 commit 234eecd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Source/MooDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ var MooDialog = new Class({
position: this.options.scroll ? 'fixed' : 'absolute',
'z-index': 6000,
opacity: 0
},
tween: {
duration: this.options.duration
}
}).inject(document.body);

Expand Down Expand Up @@ -148,7 +145,7 @@ var MooDialog = new Class({
y = y + this.options.offset.y;
x = x < 10 ? 10 : x;
y = y < 10 ? 10 : y;
if(this.wrapper.getStyle('position') != 'fixed' || relative){
if(this.wrapper.getStyle(relative || 'position') != 'fixed'){
var scroll = document.id(document.body).getScroll();
x = x + scroll.x;
y = y + scroll.y
Expand Down

0 comments on commit 234eecd

Please sign in to comment.