setHeight and ComboBox problems

Mayb it’s a known issues , don’t know

  • setHeight on components like button and menubar … make it looks like…

tried to play with Sizeable.XXX , no help

public void init() {


		Window mainWindow = new Window("X3 Application");
		setMainWindow(mainWindow);
		
        MenuBar m = new MenuBar();
        m.setHeight(75,Sizeable.UNITS_POINTS);
        m.setWidth("100%");
	    mainWindow.addComponent(m);
		
	    Button b = new Button("....");
	    b.setHeight(50,Sizeable.UNITS_PICAS);
	    b.setWidth("100%");
	    mainWindow.addComponent(b);
	}

*and combobox issue

It’s because of the theme. Reindeer (the default theme) has a bunch of components themed in a way that you cannot modify the height from the default. The restriction comes from using background images to theme it.

You can create your own component theme with css to make the component’s height adjustable. Also, the
Chameleon
theme should have less of these limitations.

This depends on the theme; when using the Reindeer theme (the default), some components are made to have a specific height. Especially for buttons this can be a bummer sometimes.

You can work around this by making custom CSS for the components that should be higher, or (for button) by using NativeButton.
Or you could consider using the
Chamaleon Theme
.

Oh, and the reason: this is a tradeoff to get that particular look on all browsers, starting from IE6. Here is one ticket about the issue:
http://dev.vaadin.com/ticket/3144

Best Regards,
Marc