Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rect: Can't set rx and ry via constructor. #16

Closed
ghost opened this issue Feb 24, 2011 · 1 comment
Closed

Rect: Can't set rx and ry via constructor. #16

ghost opened this issue Feb 24, 2011 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 24, 2011

It's not possible to set the rx and ry values of a Rect with its constructor.

var background = new fabric.Rect({
    left: 0,
    top: 0,
    fill: '#FF0000',
    width: 100,
    height: 100,
    active: false,

    rx: 10,
    ry: 10
});

It's only working if I set it after initialization:

var background = new fabric.Rect({
    left: 0,
    top: 0,
    fill: '#FF0000',
    width: 100,
    height: 100,
    active: false
});
background.rx = 8;
background.ry = 8;

Or am I missing something? ;)
greetz Lufti

@kangax
Copy link
Member

kangax commented Mar 2, 2011

Thanks! Fixed in 03561f7

asturur added a commit that referenced this issue Jun 3, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant