PDA

View Full Version : [CLOSED] BETA 5: El.setXY(int x, int y, FxConfig config)



rob_berlin
19 Jun 2008, 2:43 AM
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

darrellmeyer
19 Jun 2008, 5:21 AM
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.



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));
}
}));
}