Use the correct scale factor.
@@ -47,9 +47,10 @@ public class HtmlImage extends ImageImpl {
final RPromise<Image> pstate = ((RPromise<Image>)state);
if (isComplete(img)) pstate.succeed(this);
else {
+ final Scale fscale = scale;
HtmlInput.addEventListener(img, "load", new EventHandler() {
@Override public void handleEvent (NativeEvent evt) {
- succeed(new ImageImpl.Data(Scale.ONE, img, img.getWidth(), img.getHeight()));
+ succeed(new ImageImpl.Data(fscale, img, img.getWidth(), img.getHeight()));
}
}, false);
HtmlInput.addEventListener(img, "error", new EventHandler() {
