Navigation Menu

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

Canvas:drawImageScaledFromSource doesn't work in browsers other than chrome #16978

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

This issue was originally filed by xavier.haina...@gmail.com


What steps will reproduce the problem?
import 'dart:html';
main() {
  CanvasElement canvas = querySelector('canvas');
  ImageElement img = new ImageElement(src: 'dice.png');
  img.onLoad.first.then((_){
    canvas.context2D.drawImageScaledFromSource(img, 0, 0, 120, 120, 0, 0, 60, 60);
  });
}

What is the expected output? What do you see instead?
In chrome and Dartium: it works as expected
In Firefox: "Index or size is negative or greater than the allowed amount"
Safari: there is no error but it doesn't draw anything
InternetExplorer: "Uncaught Error: IndexSizeError"

What version of the product are you using? On what operating system?
Editor: 1.2.0.dev_05_11 (2014-02-19)

Please provide any additional information below.

@lrhn
Copy link
Member

lrhn commented Feb 20, 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

Working in 1.8 in Firefox and Safari. Assuming also fixed in IE.


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