fix(bpmnpaletteprovider): workaround for incorrect layouting of connections

The layout algorithm is broken for decimal coordinates see #143
This is a workaround to not trigger the bug when using the palette.
This commit is contained in:
jdotzki 2014-10-08 11:38:01 +02:00
parent 5633dc0b78
commit 4ab6c472df
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ BpmnPaletteProvider.prototype.getPaletteEntries = function(element) {
var vbox = canvas.viewbox(); var vbox = canvas.viewbox();
var center = { var center = {
x: vbox.outer.width * 1 / vbox.scale / 2, x: Math.round(vbox.outer.width * 1 / vbox.scale / 2),
y: vbox.outer.height * 1 / vbox.scale / 2 y: Math.round(vbox.outer.height * 1 / vbox.scale / 2)
}; };
_.extend(actions, { _.extend(actions, {