PDA

View Full Version : FillToolItem is not working



smitty
10 Sep 2012, 4:33 AM
I am using GXT 2.2.5

My problem is, that a FillToolItem does not push the elements, which are added afterwards, to the right.

Here some example code:


public class HeaderPanel extends ToolBar
{
public HeaderPanel()
{
this.add(new ContentPanel());
this.add(new FillToolItem());
this.add(new ContentPanel());
}
}


Result should be:
[ContentPanel][ Space ][ContentPanel]

but is:
[ContentPanel][ContentPanel]


I hope somebody can help me with this problem.

Thanks in advance