File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
packages/uikit-workshop/src
scripts/components/pl-layout Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 48
48
* Pattern Lab Header
49
49
*/
50
50
@import ' ../scripts/components/pl-search/pl-search.scss' ;
51
+ @import ' ../scripts/components/pl-layout/pl-layout.scss' ;
51
52
@import ' scss/04-components/header' ;
52
53
@import ' scss/04-components/logo' ;
53
54
@import ' scss/04-components/navigation' ;
Original file line number Diff line number Diff line change @@ -6,7 +6,15 @@ const classNames = require('classnames');
6
6
import { store } from '../../store.js' ; // connect to redux
7
7
import { BaseComponent } from '../base-component.js' ;
8
8
9
- import './pl-layout.scss?external' ;
9
+ import iFrameResize from 'iframe-resizer/src/iframeResizer.js' ;
10
+ iFrameResize ( {
11
+ checkOrigin : false ,
12
+ scrolling : false ,
13
+ heightCalculationMethod : 'documentElementOffset' , // most accurate calculation in testing available options
14
+ initCallback ( ) {
15
+ document . querySelector ( '.pl-js-iframe' ) . classList . add ( 'is-ready' ) ; // toggles class that removes initial min-height styling
16
+ } ,
17
+ } ) ;
10
18
11
19
@define
12
20
class Layout extends BaseComponent {
@@ -69,7 +77,8 @@ class Layout extends BaseComponent {
69
77
[ `pl-c-body--theme-${ this . themeMode } ` ] : this . themeMode !== undefined ,
70
78
[ `pl-c-body--theme-${
71
79
this . layoutMode === 'vertical' ? 'sidebar' : 'horizontal'
72
- } `] : this . layoutMode !== undefined ,
80
+ } `] :
81
+ this . layoutMode !== undefined ,
73
82
} ) ;
74
83
75
84
this . className = classes ;
You can’t perform that action at this time.
0 commit comments