html:Window.moveTo works as moveBy #16928
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-obsolete
Closed as the reported issue is no longer relevant
library-html
This issue was originally filed by alexe.kaigorodov@gmail.com
the doc reads:
void moveTo(Point p)
Moves this window to a specific position.
x and y can be negative.
However, this method
Run this code:
WindowBase nw=window.open("about:blank", "_blank");
int nx=-100, ny=-100;
print("from ${nw.screenLeft}:${nw.screenTop} to $nx, $ny");
nw.moveTo(new Point(nx, ny));
print("after moveTo: ${nw.screenLeft}:${nw.screenTop}");
nw.close();
The text was updated successfully, but these errors were encountered: