projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
FIX: bezier signature -- draw image should after img.onload
[roojs1]
/
roojs-bootstrap-debug.js
diff --git
a/roojs-bootstrap-debug.js
b/roojs-bootstrap-debug.js
index
5422f3a
..
4f56030
100644
(file)
--- a/
roojs-bootstrap-debug.js
+++ b/
roojs-bootstrap-debug.js
@@
-41918,9
+41918,13
@@
Roo.extend(Roo.bootstrap.BezierSignature, Roo.bootstrap.Component, {
{
var img = new Image();
+ img.onload = function(){
+ this.canvasElCtx().drawImage(img, 0, 0);
+ }.bind(this);
+
img.src = img_src;
- this.
canvasElCtx().drawImage(img, 0, 0)
;
+ this.
is_empty = false
;
},
// Bezier Point Constructor