Fix a bug with negative sizes in Internet Explorer 6, 7, 8, and 9 #583

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@realistschuckle

When setting the size of the canvas size in IE to a negative value, the dreaded warning sign appears in the lower left corner of the browser with the "Error on page" message. This commit checks for a negative sign on the width and height and, if one exists, does not set the width or height.

@tomasAlabes
Collaborator

With svg would happen the same. We can't check everywhere if the user inputs invalid values. Thanks anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment