).subscribe(([section, isFullscreen]) => { this.content.resize(); // Hack to make it happen after resize is done setTimeout(() => { this.calculateOffset(section, isFullscreen); }, 0); });
(childNodes: TreeNode[]) => { this.folderItems = {}; // we found all children of the node we're // traversing to (key) for (let i in childNodes) { let childNode: TreeNode = childNodes[i], childKey: number = childNode[DB_KEY_PATH]; newFolderItems[childKey] = childNode; } // for this.folderNode = folderNode; this.folderItems = newFolderItems; // resize content, because a change in this.folderNode // can affect the header's visibility this.content.resize(); },
private setElementPosition(pixels: number) { this.elementRef.nativeElement.style.paddingBottom = pixels + 'px'; this.content.resize(); }
() => { this.content.resize(); },