Skip to content

Commit

Permalink
Shorten the useScrollBar/overflow option
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian committed May 27, 2010
1 parent fc01ded commit cbe58c7
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Source/MooDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ var MooDialog = new Class({
initialize: function(options){
this.setOptions(options);

//fix
var overflowBox = "auto";
if (!this.options.useScrollBar) {
overflowBox = "hidden";
}

this.ie6 = Browser.Engine.trident && Browser.Engine.version <= 4;
var options = this.options, optionsSize = options.size;

Expand All @@ -81,8 +75,7 @@ var MooDialog = new Class({
styles: {
width: x,
height: y,
//overflow: 'auto' //fix
overflow: overflowBox //fix
overflow: options.useScrollBar ? 'auto' : 'hidden'
}
}).inject(wrapper);

Expand Down

0 comments on commit cbe58c7

Please sign in to comment.