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

wants to merge 1 commit into


None yet

2 participants


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.


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