Make sure we include staysPressed in the list of arguments to the Button object
, so that we don't end up ignoring minHeight. svn path=/trunk/; revision=58
This commit is contained in:
@ -18,8 +18,8 @@ const PARTIAL_OPACITY = 0.4 * 255;
|
||||
|
||||
const FULL_OPACITY = 255;
|
||||
|
||||
function Button(text, buttonColor, pressedButtonColor, minWidth, minHeight) {
|
||||
this._init(text, buttonColor, pressedButtonColor, minWidth, minHeight);
|
||||
function Button(text, buttonColor, pressedButtonColor, staysPressed, minWidth, minHeight) {
|
||||
this._init(text, buttonColor, pressedButtonColor, staysPressed, minWidth, minHeight);
|
||||
}
|
||||
|
||||
Button.prototype = {
|
||||
|
Reference in New Issue
Block a user