提交 572079a2 编写于 作者: J Joao Moreno

fix npe

上级 b4d91dea
......@@ -253,7 +253,7 @@ export class ViewItem implements IViewItem {
}
}
if (!skipUserRender) {
if (!skipUserRender && this.element) {
const style = window.getComputedStyle(this.element);
const paddingLeft = parseFloat(style.paddingLeft);
......@@ -271,7 +271,7 @@ export class ViewItem implements IViewItem {
}
updateWidth(): any {
if (!this.context.horizontalScrolling) {
if (!this.context.horizontalScrolling || !this.element) {
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册