mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
[broadway] Fix x/y mismatch in canvas position
This commit is contained in:
parent
5a49bfe96a
commit
e64a38eeef
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user