Skip to content

Commit

Permalink
Rename component MainContent to MonitorContentHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
nummi committed Oct 1, 2019
1 parent 504e2fd commit 00351dd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { task, timeout } from 'ember-concurrency';

// Currently used to determine the height of list-views
export default Component.extend({
tagName: '',

/**
* Layout service. We inject it to keep its `contentHeight` property
* up-to-date.
Expand Down
4 changes: 2 additions & 2 deletions app/services/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ import Evented from '@ember/object/evented';
export default Service.extend(Evented, {
/**
* Stores the app's content height. This property is kept up-to-date
* by the `main-content` component.
* by the `monitor-content-height` component.
*
* @property contentHeight
* @type {Number}
*/
contentHeight: null,

/**
* This is called by `main-content` whenever a window resize is detected
* This is called by `monitor-content-height` whenever a window resize is detected
* and the app's content height has changed. We therefore update the
* `contentHeight` property and notify all listeners (mostly lists).
*
Expand Down
4 changes: 2 additions & 2 deletions app/templates/application.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
</button>
</div>

<MainContent class="split__panel__bd">
<MonitorContentHeight class="split__panel__bd">
{{outlet}}
</MainContent>
</MonitorContentHeight>
</div>
</div>
</div>
Expand Down
File renamed without changes.

0 comments on commit 00351dd

Please sign in to comment.