Skip to content

Commit 9284169

Browse files
committed
[bugfix] Fix integration of Field in Firefox
1 parent 082e294 commit 9284169

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

src/App.vue

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@
1212
</div>
1313
<div class="main-middle-container">
1414
<Events/>
15-
<iframe :src="visionClientAddress" frameborder="none" v-if="showVisionClient"
16-
class="vision-client"></iframe>
15+
<iframe :src="visionClientAddress"
16+
frameborder="none"
17+
v-if="showVisionClient"
18+
class="vision-client">
19+
</iframe>
1720
<div class="vision-client" v-show="!showVisionClient">
1821
<p>The vision-client is shown here, if it is running.</p>
1922
<p>It is expected to run at <a :href="visionClientAddress">{{visionClientAddress}}</a></p>
@@ -126,9 +129,18 @@
126129
flex-wrap: nowrap;
127130
justify-content: flex-start;
128131
align-content: stretch;
132+
align-items: stretch;
129133
flex-grow: 1;
130134
}
131135
136+
@-moz-document url-prefix() {
137+
/* CSS-Hack for limiting following style to Firefox only */
138+
.main-middle-container {
139+
/* Setting height to 100% in Chrome and Firefox has contradictory effects*/
140+
height: 100%;
141+
}
142+
}
143+
132144
.vision-client {
133145
flex-grow: 1;
134146
width: 100%;
@@ -151,4 +163,10 @@
151163
float: left;
152164
margin: 0.5em;
153165
}
166+
167+
iframe {
168+
border: 0;
169+
width: 100%;
170+
height: 100%
171+
}
154172
</style>

0 commit comments

Comments
 (0)