|
|||||||
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
How do I add space before the first item on ToolBar? I tried setSpacing, but that only sets the spacing between the first item and the following items. I need about 30px spacing between the edge of the toolbar and the first item.
|
|
#2
|
|||
|
|||
|
What about:
final BoxComponent spaceItem = new BoxComponent()
{
@Override
protected void onRender(final Element target, final int index)
{
this.setElement(DOM.createDiv(), target, index);
}
};
spaceItem.setWidth(50);
toolbar.add(spaceItem);
|
![]() |
| Thread Tools | |
|
|