Skip to content

Commit 12abac9

Browse files
committed
Bug fix for msa view
1 parent e1051c8 commit 12abac9

2 files changed

Lines changed: 7 additions & 15 deletions

File tree

frontend/MSA.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
:referenceStructure="structureViewerReference"
203203
:matchRatio="parseFloat(matchRatio)"
204204
:mask="mask"
205-
:highlightColumns="selectedColumns"
205+
:highlightedColumns="selectedColumns"
206206
@cssGradients="handleCSSGradient"
207207
@lineLen="handleLineLen"
208208
@newStructureSelection="handleNewStructureViewerSelection"
@@ -749,7 +749,6 @@ export default {
749749
this.selectedColumns.splice(i, 1)
750750
this.$emit('changedSelection', this.selectedColumns)
751751
this.$refs.msaView.removeHighlightColumn(idx)
752-
this.$refs.structViewer.updateAllHighlights()
753752
},
754753
changePreview(idx, fromStruct=false) {
755754
if (idx < 0) {

frontend/MSAView.vue

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@
2828
z-index: 5; transform: translateX(-2px);"
2929
:style="{'width': 'calc((1ch + 4px) * ' + String(aa.length) +')'}"
3030
>
31-
<div v-for="(c, i) in indices" class="column-box" :data-index="c" :key="c" @click.stop="toggleHighlightColumn">
32-
<div v-for="v in entryLength" style="width: 100%; height: 1em;" :title="actualResno.length > 0 ? actualResno[v-1][c] : ''"></div>
31+
<div v-for="(c, i) in indices"
32+
class="column-box" :data-index="c" :key="c" @click.stop="toggleHighlightColumn"
33+
:class="{'active-column': highlightedColumns.includes(c)}"
34+
>
35+
<div v-for="v in entryLength" style="width: 100%; height: 1em;"
36+
:title="actualResno.length > 0 ? actualResno[v-1][c] : ''"></div>
3337
</div>
3438
</div>
3539
<div class="row-wrapper"
@@ -149,17 +153,6 @@ export default {
149153
lineLen: function() {
150154
this.$emit("lineLen", this.lineLen);
151155
},
152-
mask() {
153-
this.$nextTick(() => {
154-
setTimeout(() => {
155-
for (let id in this.selectedColumns) {
156-
this.$refs.msaWrapper
157-
.querySelector(`.column-box[data-index="${id}"]`)
158-
?.classList.add('active-column')
159-
}
160-
}, 0)
161-
})
162-
},
163156
},
164157
computed: {
165158
maskCumSum() {

0 commit comments

Comments
 (0)