Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix disappearing nodes
[controller.git]
/
opendaylight
/
web
/
root
/
src
/
main
/
resources
/
js
/
jit.js
diff --git
a/opendaylight/web/root/src/main/resources/js/jit.js
b/opendaylight/web/root/src/main/resources/js/jit.js
index 0f9ef03304948dadcbaf6fc47db6fb21b6658eac..7cfc2009477af05e7c5d3deb5575207f6e8fa302 100644
(file)
--- a/
opendaylight/web/root/src/main/resources/js/jit.js
+++ b/
opendaylight/web/root/src/main/resources/js/jit.js
@@
-6115,10
+6115,10
@@
var MultiNodeHelper = {
};
} else {
ctx.drawImage(img,pos.x-32,pos.y-32);
};
} else {
ctx.drawImage(img,pos.x-32,pos.y-32);
+ img.onload = function() {
+ ctx.drawImage(img,pos.x-32,pos.y-32);
+ };
}
}
- /*var width = 64, height = 55;
- ctx.fillStyle = "rgba(0,0,0,0)";
- ctx.fillRect(pos.x - width / 2, pos.y - height / 2, width, height);*/
},
'contains': function(npos, pos) {
var width = 64, height = 55;
},
'contains': function(npos, pos) {
var width = 64, height = 55;
@@
-6137,10
+6137,10
@@
var MultiNodeHelper = {
};
} else {
ctx.drawImage(img,pos.x-32,pos.y-32);
};
} else {
ctx.drawImage(img,pos.x-32,pos.y-32);
+ img.onload = function() {
+ ctx.drawImage(img,pos.x-32,pos.y-32);
+ };
}
}
- /*var width = 64, height = 45;
- ctx.fillStyle = "rgba(0,0,0,0)";
- ctx.fillRect(pos.x - width / 2, pos.y - height / 2, width, height);*/
},
'contains': function(npos, pos) {
var width = 64, height = 45;
},
'contains': function(npos, pos) {
var width = 64, height = 45;