我想花幾個小時在smartGWT中移動我的對話框,但沒有運氣。如何定位smartGWT對話框
這是我的代碼:
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();
我也試過:setLeft, setTop, setRect,
無任何影響。
我的對話框始終顯示在相同的位置。
任何想法?
你確定你發佈你的更改是否正確嗎? – Sednus
你正在使用更新後的代碼嗎?有時需要重新運行。也正如@Alain所說,也許它沒有被重新繪製? – Cornelius