problem with setWidth on Button in IE

Hi, I have a weird problem setting the width of a Button in a subwindow; here is a simplified code:

public class Test extends Window {
public Test() {
Button save = new Button(“Save”);
save.setWidth(7, UNITS_EM);
addComponent(save);
}
}

Then in my root window I call addWindow(new Test()):

In Firefox all works and I get a new subwindow with the button;

in IE (7) I get a subWindow without button and an error shows in the debug window: java.lang.NumberFormatException: For input string: “7.0”.

I’m using the latest version of Vaadin (6.3.4).

Is it a bug?

Thanks

Claudio

Hello everyone,

I have almost the same problem.

I use a tab sheet in which I want to add a button. It doesn’t work if I set the width unit of button to “em”, the child components of the tab sheet are not displayed, but it works fine on Firefox and Chrome. It also works with “px” on all the browsers I have (IE, FF, Chrome). In my case, there’s no exception.

I attach two images, one is IE where it doesn’t work, the other is Chrome where it works.

I think it may be a bug.

I use the version 6.7.2 of Vaadin and IE 7 and 8.

I feel so sorry that no one has answered Claudio’s question since almost two years. Perhaps few people use “em” for a button.

Thanks a lot.

Bo
12220.bmp (610 KB)
12221.bmp (118 KB)