@@ -13,7 +13,7 @@ export default class ApplicationController extends Controller {
1313 * Service used to broadcast changes to the application's layout
1414 * such as toggling of the object inspector.
1515 */
16- @service ( 'layout' ) layoutService ;
16+ @service layout ;
1717 @service port ;
1818
1919 // Indicates that the extension window is focused,
@@ -84,22 +84,20 @@ export default class ApplicationController extends Controller {
8484 @action
8585 setupContentElement ( element ) {
8686 this . contentElement = element ;
87- this . layoutService . updateContentHeight ( this . contentElement . clientHeight ) ;
87+ this . layout . updateContentHeight ( this . contentElement . clientHeight ) ;
8888 }
8989
9090 @action
9191 _windowDidResize ( ) {
9292 // eslint-disable-next-line ember/no-runloop
9393 schedule ( 'afterRender' , ( ) => {
9494 if ( ! this . isDestroyed && ! this . isDestroying ) {
95- this . layoutService . trigger ( 'resize' , {
95+ this . layout . trigger ( 'resize' , {
9696 source : 'application-controller' ,
9797 } ) ;
9898
9999 if ( this . contentElement ) {
100- this . layoutService . updateContentHeight (
101- this . contentElement . clientHeight ,
102- ) ;
100+ this . layout . updateContentHeight ( this . contentElement . clientHeight ) ;
103101 }
104102 }
105103 } ) ;
@@ -116,7 +114,7 @@ export default class ApplicationController extends Controller {
116114 this . navIsCollapsed = ! this . navIsCollapsed ;
117115 // eslint-disable-next-line ember/no-runloop
118116 schedule ( 'afterRender' , ( ) => {
119- this . layoutService . trigger ( 'resize' , { source : 'navigation' } ) ;
117+ this . layout . trigger ( 'resize' , { source : 'navigation' } ) ;
120118 } ) ;
121119 }
122120
0 commit comments