mirror of
https://github.com/konvajs/konva.git
synced 2025-09-24 21:37:18 +08:00
fixed Label regression
This commit is contained in:
@@ -151,10 +151,16 @@
|
||||
}
|
||||
|
||||
tag.setAttrs({
|
||||
|
||||
x: -1 * x,
|
||||
y: -1 * y,
|
||||
width: width,
|
||||
height: height
|
||||
});
|
||||
|
||||
text.setAttrs({
|
||||
x: -1 * x,
|
||||
y: -1 * y
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@@ -1,5 +1,5 @@
|
||||
Test.Modules.LABEL = {
|
||||
'add label': function(containerId) {
|
||||
'*add label': function(containerId) {
|
||||
var stage = new Kinetic.Stage({
|
||||
container: containerId,
|
||||
width: 578,
|
||||
|
Reference in New Issue
Block a user