Skip to content

Commit fefecca

Browse files
committed
Revert "Fix iframe hiding to avoid breaking stl, pdb, and images"
This reverts commit bc864c3.
1 parent 7150e66 commit fefecca

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

mfr/server/static/css/mfr.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,14 @@ This CSS was stripped out of base.css from the osf-style repo.
4242
align-items: center;
4343
width: 100%;
4444
height: 250px;
45-
top: 0;
46-
left: 0;
4745
}
4846

4947
.embed-responsive-pdf {
5048
padding-bottom: 95%;
5149
}
5250

5351
#mfrIframe iframe {
54-
opacity: 0.0;
52+
display: none;
5553
}
5654

5755
#mfrIframe {

mfr/server/static/js/mfr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
self.pymParent.el.appendChild(self.spinner);
8383
$(self.pymParent.iframe).on('load', function() {
8484
self.pymParent.el.removeChild(self.spinner);
85-
this.style.opacity = "1.0"
85+
this.style.display = "block"
8686
})
8787

8888
self.pymParent.onMessage('embed', function(message) {

0 commit comments

Comments
 (0)