Skip to content

Commit

Permalink
docs(content): add docs about content.resize()
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Apr 2, 2017
1 parent 4ac8ffb commit c72598a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/content/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit c72598a

Please sign in to comment.