mirror of
https://github.com/konvajs/konva.git
synced 2025-10-08 00:14:23 +08:00
fix imageSmoothingEnabled on resize. fix #884
This commit is contained in:
@@ -416,6 +416,11 @@ suite('Layer', function() {
|
||||
|
||||
assert.equal(layer.getContext().imageSmoothingEnabled, true);
|
||||
|
||||
layer.imageSmoothingEnabled(false);
|
||||
// change size
|
||||
stage.width(stage.width() + 1);
|
||||
assert.equal(layer.getContext().imageSmoothingEnabled, false);
|
||||
|
||||
done();
|
||||
};
|
||||
imageObj.src = 'assets/darth-vader.jpg';
|
||||
|
Reference in New Issue
Block a user