LayoutSpacer.setWidth("*") not working

The following code in SmartGWT EE 2 had a two buttons in a toolstrip with a button on the left and one on the right. We used a layout spacer with setWidth(“*”) to accomplish this. However when we upgraded from SmartGWT EE 2 to SmartGWT Power 2.1 the buttons where both left aligned thus the LayoutSpacer was essentially ignored.

ToolStrip headerLinks = new ToolStrip();
headerLinks.addMember(changeOfficeButton);
headerLinks.addMember(new ToolStripSeparator());

LayoutSpacer spacer = new LayoutSpacer();
spacer.setWidth("*");
	  
headerLinks.addMember(spacerAfterChangeOffice);
headerLinks.addMember(new ToolStripSeparator());

HeaderLinkButton headerLingHelpButton = new HeaderLinkButton("Help");
headerLingHelpButton.addClickHandler(new ClickHandler() {
headerLinks.addMember(headerLingHelpButton);

Current version SmartGWT Power 2.1 SC_SNAPSHOT-2010-04-19/PowerEdition Deployment (built 2010-04-19), GWT 2.0.3, JDK 1.5,

Where do you add the layout spacer?

RE: LayoutSpacer.setWidth(“*”)

Ah right the code is incorrect. here is the code

headerLinks.addMember(changeOfficeButton);
headerLinks.addMember(new ToolStripSeparator());
	  
 LayoutSpacer middleSpacer = new LayoutSpacer();
 middleSpacer.setWidth("*");
headerLinks.addMember(middleSpacer);
headerLinks.addMember(new ToolStripSeparator());
staffTrackLink = new Label();
staffTrackLink.setContents("<a href='https://stafftrack.net' classname='headerLink' target='_stafftrack'>StaffTrack.net</a>");
staffTrackLink.setHeight(20);
staffTrackLink.setPadding(5);

headerLinks.addMember(staffTrackLink);