mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-18 10:50:32 +03:00
Fix tests
This commit is contained in:
parent
7e4d56c405
commit
f723240145
|
@ -144,10 +144,10 @@ export default class JsonSchema extends BaseComponent {
|
||||||
ngAfterViewInit() {
|
ngAfterViewInit() {
|
||||||
// adjust widht only on parent level
|
// adjust widht only on parent level
|
||||||
let el = this.element.parentElement;
|
let el = this.element.parentElement;
|
||||||
while(el.tagName !== 'JSON-SCHEMA' && el.tagName !== 'REDOC') {
|
while(el && el.tagName !== 'JSON-SCHEMA' && el.tagName !== 'REDOC') {
|
||||||
el = el.parentElement;
|
el = el.parentElement;
|
||||||
}
|
}
|
||||||
if (el.tagName === 'REDOC' ) {
|
if (el && el.tagName === 'REDOC' ) {
|
||||||
this.adjustNameColumnWidth();
|
this.adjustNameColumnWidth();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user