canvas input: prevent resize handler from failing if it's triggered without size data
This commit is contained in:
parent
6528fd076d
commit
57a6d4e61b
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@
|
|||
var width = width*2,
|
||||
height = height*2
|
||||
|
||||
if (height==100 && width==100) return
|
||||
if (height==100 && width==100 || !width) return
|
||||
|
||||
self.color = getComputedStyle(canvas[0]).getPropertyValue("--color-text")
|
||||
self.height=height
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue