本文整理匯總了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();
}