Separate items in a Panel

Hello,

I’ve got a Panel with 2 components. I’d like to have a separation between those two component (an empty line). I’ve used myPanel.addComponent(new Label(" ")); It works well on IE but not in FF. Is there a workaround for that or another way to it ?

Regards,
Denis.

myPanel.addComponent(new Label(" ", Label.CONTENT_XHTML));

That will work on all browsers. Most browsers will collapse empty textnodes, so that’s you’re code isn’t working.

Exact thanks for the info.

I’m using panelFormRetraitRappel.addComponent(new Label(“
”, Label.CONTENT_XHTML));

Regards,
Denis.

Also note that most core layouts have setSpacing(true) available, so no need to add any spacer components.

One more option is to set the height explicitly to the Label, no need for the XHTML mode then.

myLabel.setHeight(“14px”);