ToolBox height is 100% of main window

Hi,

I created a ToolBox on the RIGHT BOTTOM of the page but when i open the ToolBox i manage to control the width with setWidth but the Height always opens to 100%.
What am i doing wrong?

Grtz,
e

Hi Emanouil,

Can you add some code snippet?, it will be usefull. Anyway, try to add height to the component/layout.

Cheers,

Javi

Hi Javier,

here is the code snippet



	VerticalLayout				mainView			= new VerticalLayout();
	VerticalLayout				layout			= new VerticalLayout();

.
.
.

// add the toolbar
	layout.addComponent(toolBar);
	toolBar.setStyleName("toolbar");		
	layout.setExpandRatio(toolBar, 0.10f);
		
	// add the main window content
	layout.addComponent(mainView);
	layout.setExpandRatio(mainView, 1);
	getMainWindow().setContent(layout);
	mainView.setSizeFull();
	layout.setSizeFull();
		
	// We should be adding the ToolBox to the layout
	mainView.addComponent(searchToolbox);
	searchToolbox.getWindow().setHeight("100px");

I tried resizing the window by adding the following line searchToolbox.getWindow().setHeight(“100px”);
but that didn’t help. I would rather avoid the need to specify the height myself however.

Do i need to use SetSizeUndefined then?

Regards,
e

Sorry for the inconvenience:

The problem was related to custom definition of the stylesheet.

By removing my custom style definitions, the Toolbox behaves correctly.

Regards,
e