Skip to content

IE8 / R2.0.1 - viewbox scaling  #468

@ghost

Description

In ie8 and Raphael 2.0.1, setting viewbox does not scale bbox values, cloned shapes or glows.

In the example below, all rects should be the same size and position, but are not:

var paper = Raphael("canvas", 100, 100);
var rect = paper.rect(10, 10, 10, 10);
paper.setViewBox(0, 0, 50, 50)

paper.rect(10, 10, rect.getBBox().width, rect.getBBox().height).
    attr("stroke", "red");
rect.clone().
    attr("stroke", "blue");
rect.glow()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions