Commit 99adf60b authored by Yay295's avatar Yay295

add x,y,width,height attrs to filters

In Firefox the edges were being cut off if a rotation was also applied.
parent 2fba9869
......@@ -1490,6 +1490,10 @@ let SubtitleManager = (function() {
if (tspan_data.filterTransition || this.style.BE || this.style.Blur) {
this.filter = createSVGElement("filter");
this.filter.id = "filter" + getID();
this.filter.setAttribute("x", "-" + renderer.width);
this.filter.setAttribute("y", "-" + renderer.height);
this.filter.setAttribute("width", renderer.width * 2);
this.filter.setAttribute("height", renderer.height * 2);
}
return toReturn;
......
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