File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,23 @@ This CSS was stripped out of base.css from the osf-style repo.
35
35
background-color : # 337AB7 ;
36
36
}
37
37
38
+ .ball-scale {
39
+ position : absolute;
40
+ display : flex;
41
+ justify-content : center;
42
+ align-items : center;
43
+ width : 100% ;
44
+ height : 250px ;
45
+ }
46
+
38
47
.embed-responsive-pdf {
39
48
padding-bottom : 95% ;
40
49
}
50
+
51
+ # mfrIframe iframe {
52
+ display : none;
53
+ }
54
+
55
+ # mfrIframe {
56
+ min-height : 250px ;
57
+ }
Original file line number Diff line number Diff line change 16
16
}
17
17
} ) ;
18
18
} ) ;
19
- } ) ;
19
+ } , false ) ;
20
20
21
21
window . addEventListener ( 'resize' , function ( ) {
22
22
window . pymChild . sendHeight ( ) ;
Original file line number Diff line number Diff line change 83
83
self . pymParent . iframe . setAttribute ( 'sandbox' , 'allow-scripts allow-popups allow-same-origin' ) ;
84
84
85
85
self . pymParent . el . appendChild ( self . spinner ) ;
86
- $ ( self . pymParent . iframe ) . on ( 'load' , function ( ) {
86
+ $ ( self . pymParent . iframe ) . on ( 'load' , function ( ) {
87
87
self . pymParent . el . removeChild ( self . spinner ) ;
88
- } ) ;
88
+ this . style . display = "block"
89
+ } )
89
90
90
91
self . pymParent . onMessage ( 'embed' , function ( message ) {
91
92
_addClass ( self . pymParent . el , 'embed-responsive' ) ;
You can’t perform that action at this time.
0 commit comments