Skip to content

Commit 3a7c51b

Browse files
core: frontend: BrIFrame: Change hiding approach
Instead of hiding the iframe with v-show (which sets display: none and gives zero dimensions), the iframe is now always visible but layered behind the loading animation using z-index positioning. Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent ae53ac1 commit 3a7c51b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/frontend/src/components/utils/BrIframe.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,27 @@
22
<v-sheet
33
width="100%"
44
height="100%"
5-
style="overflow: hidden;"
5+
style="overflow: hidden; position: relative;"
66
>
77
<spinning-logo
88
v-if="!gl_compatible && !iframe_loaded"
99
size="15%"
1010
subtitle="Loading external application..."
11+
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;"
1112
/>
1213
<canvas
1314
v-if="gl_compatible && !iframe_loaded"
1415
ref="webglCanvas"
16+
style="position: absolute; top: 0; left: 0; z-index: 2;"
1517
/>
1618
<iframe
17-
v-show="iframe_loaded"
1819
:title="`iframe-${source}`"
1920
:src="source"
2021
height="100%"
2122
width="100%"
2223
frameBorder="0"
2324
allowfullscreen
25+
style="position: absolute; top: 0; left: 0; z-index: 1;"
2426
@load="loadFinished"
2527
/>
2628
</v-sheet>

0 commit comments

Comments
 (0)