Skip to content

Commit 82aa4a4

Browse files
authored
Merge pull request #218 from InstituteforDiseaseModeling/bug/216
Fix edge case with animation
2 parents 3e55900 + cdc57c8 commit 82aa4a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

covasim/webapp/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
<template v-else>
289289
<div class="row no-gutter">
290290
<template v-for="(x, index) in result.graphs">
291-
<div :class="{'col-md-6': (index + 1 < result.graphs.length) || !show_animation, 'col-md-12': (index + 1 === result.graphs.length) && show_animation }">
291+
<div :class="{'col-md-6': (index + 1 < result.graphs.length) || !show_animation || result.graphs.length%2 === 0, 'col-md-12': (index + 1 === result.graphs.length) && show_animation && result.graphs.length%2 === 1 }">
292292
<plotly-chart :graph="x" :key="x.id"/>
293293
</div>
294294
</template>

0 commit comments

Comments
 (0)