-
19 Jun 2008 2:43 AM #1
[CLOSED] BETA 5: El.setXY(int x, int y, FxConfig config)
[CLOSED] BETA 5: El.setXY(int x, int y, FxConfig config)
There seems to be bug, whenever
I do the following:
FxConfig config = new FxConfig(500);
el.setXY(x,y,config);
element is not moving in hosted mode.
following works:
FxConfig config = new FxConfig(2000);
el.setXY(x,y,config);
must be some problem in
Animation.update(double curTime) with
small durations
the FX sample in exploreer demo woks, since it uses:
since it does not use attribute FXCOnfig.duration
-
19 Jun 2008 5:21 AM #2
I tested the following code and had no issues, host mode, web mode ie and ff. If you still have problems, then post some test code.
PHP Code:public void onModuleLoad() {
final Button btn = new Button("Test");
RootPanel.get().add(btn);
RootPanel.get().add(new Button("Move", new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
btn.el().setXY(100, 100, new FxConfig(100));
}
}));
}


Reply With Quote