I am going through the example code here:


and cannot seem to get the buttons in com.nokia.uihelpers\Button.java to resize properly for height. It works fine for width, but putting in different initial values in this constructor for height doesn't seem have any affect at all:
public Button(String label, int x, int y, int width, int height, int type) {

It seems that the public void render(Graphics g, int index, int count) method does not take into account height. The button clickable area seems to be ok, but the actual button image is not expanded for height. I am guessing it is a problem with this code here, in which it seems to take width into account when drawing button but not height.

g.drawImage(leftImage, 0, 0, Graphics.TOP | Graphics.LEFT);
for (int i = leftImage.getWidth(); i <= width - rightImage.getWidth(); i++) {
g.drawImage(centerImage, i, 0, Graphics.TOP | Graphics.LEFT);
g.drawImage(rightImage, width, 0, Graphics.TOP | Graphics.RIGHT);

I am running on the latest Nokia SDK 2.0 for Java, Nokia IDE for Java ME v1.

Please let me know if you can think of a fix for this sample code, as I am using it as an example for my own code. Thanks!