Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html:Window.moveTo works as moveBy #16928

Closed
DartBot opened this issue Feb 19, 2014 · 3 comments
Closed

html:Window.moveTo works as moveBy #16928

DartBot opened this issue Feb 19, 2014 · 3 comments
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

Comments

@DartBot
Copy link

DartBot commented Feb 19, 2014

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

  1. uses coordinates of point p as relative, not absolute coordinates
  2. negative coordinate values ignored, considered as 0

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

@lrhn
Copy link
Member

lrhn commented Feb 19, 2014

Added Area-HTML, Triaged labels.

@kevmoo
Copy link
Member

kevmoo commented Apr 7, 2014

Removed Area-HTML label.
Added Area-Library, Library-Html labels.

@alan-knight
Copy link
Contributor

That code doesn't work any more because we can't move a different window, or get at its coordinates. But trying it on my own window, and looking at the code, it seems correct now.


Added AssumedStale label.

@DartBot DartBot added Type-Defect area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-html closed-obsolete Closed as the reported issue is no longer relevant labels Jan 16, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants