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:
Marina Zhurakhinskaya 2008-11-19 19:25:51 +00:00
parent 5b31ce3415
commit f81e9d3aaa
2 changed files with 3 additions and 3 deletions

View File

@ -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 = {

View File

@ -34,7 +34,7 @@ Panel.prototype = {
background.set_position(-1, -1);
this._group.add_actor(background);
this.button = new Button.Button("Activities", PANEL_BACKGROUND_COLOR, PRESSED_BUTTON_BACKGROUND_COLOR, true, null, PANEL_HEIGHT);
this.button = new Button.Button("Activities", PANEL_BACKGROUND_COLOR, PRESSED_BUTTON_BACKGROUND_COLOR, true, null, PANEL_HEIGHT-1);
this._group.add_actor(this.button.button);