improved layout and fixed bugs introduced new ones

This commit is contained in:
David Meincke
2022-03-27 16:45:51 +02:00
parent 6ed4b80c64
commit d24e605ea9
19 changed files with 318 additions and 101 deletions
+13
View File
@@ -84,6 +84,19 @@ export class BaseElement extends HTMLElement {
return result;
}
visibleChildren(inElement: HTMLElement = this) {
var result = [];
for (let i = 0; i < inElement.children.length; i++) {
const child = <HTMLElement>inElement.children[i];
if (child.style.display !== "none") {
result.push(child);
}
}
return result;
}
hasChild(element: Element, startsWidth: boolean = false): boolean {
var ele = this;