本文整理汇总了TypeScript中ionic-angular.Content.resize方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Content.resize方法的具体用法?TypeScript Content.resize怎么用?TypeScript Content.resize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ionic-angular.Content
的用法示例。
在下文中一共展示了Content.resize方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: setTimeout
).subscribe(([section, isFullscreen]) => {
this.content.resize();
// Hack to make it happen after resize is done
setTimeout(() => {
this.calculateOffset(section, isFullscreen);
}, 0);
});
示例2:
(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();
},
示例3: setElementPosition
private setElementPosition(pixels: number) {
this.elementRef.nativeElement.style.paddingBottom = pixels + 'px';
this.content.resize();
}