Commit b6509195 authored by Jonathan Wilkes's avatar Jonathan Wilkes

fix weird rendering bug with svg background when zoomed-in

parent f75d0f26
Pipeline #3019 failed with stage
in 265 minutes and 18 seconds
......@@ -1418,7 +1418,7 @@ var create_editmode_background = function(grid, size) {
cell_data_str = ['"', "M", size, 0, "L", 0, 0, 0, size, '"'].join(" ");
head = ['<svg xmlns="http://www.w3.org/2000/svg" ',
'width="100%" height="100%" ',
'width="100" height="100" ',
'opacity=', opacity_str, '>']
.join("");
body = ['<defs>',
......@@ -1434,7 +1434,7 @@ var create_editmode_background = function(grid, size) {
'd="M 100 0 L 0 0 0 100"/>',
'</pattern>',
'</defs>',
'<rect width="100%" height="100%" fill="url(#grid)" />'
'<rect width="100" height="100" fill="url(#grid)" />'
].join("");
tail = '</svg>';
return "url('data:image/svg+xml;utf8," + head + body + tail + "')";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment