From e64a38eeefef651ec6484da8e7596d32847262b3 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Sun, 21 Nov 2010 20:03:52 +0100 Subject: [PATCH] [broadway] Fix x/y mismatch in canvas position --- gdk/broadway/broadway.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js index cbd11e443d..7941c13fe4 100644 --- a/gdk/broadway/broadway.js +++ b/gdk/broadway/broadway.js @@ -1,4 +1,3 @@ - var base64_val = [ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, @@ -72,8 +71,8 @@ function initContext(canvas, x, y, id) { canvas.surface_id = id; canvas.style["position"] = "absolute" - canvas.style["top"] = x + "px" - canvas.style["left"] = y + "px" + canvas.style["left"] = x + "px" + canvas.style["top"] = y + "px" canvas.style["display"] = "none" context = canvas.getContext("2d") context.globalCompositeOperation = "src-over"