I am trying for hours now to move my dialog in smartGWT, but with no luck.
This is my code:
Dialog dlg = new Dialog();
ListGridRecord[] h = scoringGrid.getRecords();
HLayout chart = new HLayout();
vlayout.addMember(chart);
dlg.addMember(highChart(h));
dlg.moveBy(500, 900);
dlg.setHeight("400px");
dlg.setWidth("700px");
dlg.show();
I also tried: setLeft, setTop, setRect,
without any effect.
My dialog always displays at the same location.
Any ideas?
Dialog is a subClass of Window. So you can invoke the method setRect which is inherited.
From the Javadoc:
public void setRect(int left, int top, int width, int height)
// Set all four coordinates, relative to the enclosing context, at once.
If you don't see the change perhaps you would have to redraw in some cases I found it necessary.