Skip to content

Commit

Permalink
Added width parameter to constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
gmb0119 committed Apr 19, 2011
1 parent 22f825e commit 5cf2b71
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions build/DAT.GUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ DAT.GUI = function(parameters) {
var _this = this;

var open = true;

var width = 280;
if (parameters.width != undefined) {
width = parameters.width;
}

// Prevents checkForOverflow bug in which loaded gui appearance
// settings are not respected by presence of scrollbar.
Expand Down
8 changes: 4 additions & 4 deletions build/DAT.GUI.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ <h1><a href='http://twitter.com/guidat'><img src='docs/assets/profile.png'
<ul>
<li>
<a href='https://github.com/dataarts/dat.gui/raw/master/build/DAT.GUI.min.js'><strong>Download the minified source</strong></a>
<small id='buildsizemin'>[19.3kb]
<small id='buildsizemin'>[19.4kb]
</small>
</li>
<li>
<a href='https://github.com/dataarts/dat.gui/raw/master/build/DAT.GUI.js'><strong>Download the uncompressed source</strong></a>
<small id='buildsize'>[33.3kb]
<small id='buildsize'>[33.4kb]
</small>
</li>

Expand Down
4 changes: 4 additions & 0 deletions src/DAT/GUI/GUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ DAT.GUI = function(parameters) {
var _this = this;

var open = true;

var width = 280;
if (parameters.width != undefined) {
width = parameters.width;
}

// Prevents checkForOverflow bug in which loaded gui appearance
// settings are not respected by presence of scrollbar.
Expand Down

0 comments on commit 5cf2b71

Please sign in to comment.