Skip to content

Commit

Permalink
fix: auto padding第一遍不执行动画
Browse files Browse the repository at this point in the history
  • Loading branch information
paleface001 committed Dec 24, 2019
1 parent ae38cb8 commit df67d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/view-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ export default abstract class ViewLayer<T extends ViewLayerConfig = ViewLayerCon
protected abstract geometryParser(dim: string, type: string): string;

protected animation() {
if (this.options.animation === false) {
if (this.options.animation === false || this.options.padding === 'auto') {
this.config.animate = false;
}
}
Expand Down

0 comments on commit df67d9e

Please sign in to comment.