fix cache with float dimensions. fix #798

This commit is contained in:
Anton Lavrenov
2019-11-28 11:51:40 -05:00
parent 472441fcfe
commit 65eeb13d66
5 changed files with 33 additions and 6 deletions

View File

@@ -363,8 +363,8 @@ export abstract class Node<Config extends NodeConfig = NodeConfig> {
relativeTo: this.getParent()
});
}
var width = conf.width || rect.width,
height = conf.height || rect.height,
var width = Math.ceil(conf.width || rect.width),
height = Math.ceil(conf.height || rect.height),
pixelRatio = conf.pixelRatio,
x = conf.x === undefined ? rect.x : conf.x,
y = conf.y === undefined ? rect.y : conf.y,