提交 c259ee91 编写于 作者: R Rob Lourens

Settings editor - fix NPE rendering settings with no description

上级 adf837e7
......@@ -1025,7 +1025,7 @@ export class SettingsRenderer implements ITreeRenderer {
const result = this.renderValue(element, isSelected, templateId, <ISettingItemTemplate>template);
const firstLineOverflows = renderedDescription.firstElementChild.clientHeight > 18;
const firstLineOverflows = renderedDescription.firstElementChild && renderedDescription.firstElementChild.clientHeight > 18;
const hasExtraLines = renderedDescription.childElementCount > 1;
const needsManualOverflowIndicator = (hasExtraLines || result.overflows) && !firstLineOverflows && !isSelected;
DOM.toggleClass(template.descriptionElement, 'setting-item-description-artificial-overflow', needsManualOverflowIndicator);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册