improved layout and fixed bugs introduced new ones
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user