fixed Label regression

This commit is contained in:
Eric Rowell
2013-05-21 00:13:32 -07:00
parent c9e281c48b
commit 2f43f26418
2 changed files with 8 additions and 2 deletions

View File

@@ -151,10 +151,16 @@
} }
tag.setAttrs({ tag.setAttrs({
x: -1 * x,
y: -1 * y,
width: width, width: width,
height: height height: height
}); });
text.setAttrs({
x: -1 * x,
y: -1 * y
});
} }
} }
}; };

View File

@@ -1,5 +1,5 @@
Test.Modules.LABEL = { Test.Modules.LABEL = {
'add label': function(containerId) { '*add label': function(containerId) {
var stage = new Kinetic.Stage({ var stage = new Kinetic.Stage({
container: containerId, container: containerId,
width: 578, width: 578,