Skip to content

Shapes fail to remove their stroke after .setStyle({stroke: false}) #441

@thatjpk

Description

@thatjpk

It appears that if you create a shape and enable stroke (either when the shape is created, or later with .setStyle()), the stroke can't be turned back off.

If a shape is created with no stroke, it renders correctly (no stroke visible). If a shape created with no stroke, then later has it's stroke enabled with .setStyle({stroke: true}), it renders correctly (a stroke visible). But if you try to turn it back off with .setStyle({stroke: false}), it renders incorrectly (the stroke remains visible).

Here's a gist of a simple example that reproduces the problem: https://gist.github.com/1626238
Tested in Chromium 15 and Firefox 9, and both exhibited this behavior.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions