docs(content): add docs about content.resize()

This commit is contained in:
Manuel Mtz-Almeida
2017-04-02 13:44:34 +02:00
parent 4ac8ffb6ed
commit c72598a810

View File

@ -63,7 +63,9 @@ export class EventEmitterProxy<T> extends EventEmitter<T> {
*
* @advanced
*
* Resizing the content
* Resizing the content. If the height of `ion-header`, `ion-footer` or `ion-tabbar`
* changes dynamically, `content.resize()` has to be called in order to update the
* layout of `Content`.
*
*
* ```ts
@ -631,7 +633,7 @@ export class Content extends Ion implements OnDestroy, AfterViewInit {
/**
* Tell the content to recalculate its dimensions. This should be called
* after dynamically adding headers, footers, or tabs.
* after dynamically adding/removing headers, footers, or tabs.
*/
resize() {
this._dom.read(this._readDimensions.bind(this));