Skip to content

Commit

Permalink
hotfix #129
Browse files Browse the repository at this point in the history
  • Loading branch information
telion2 committed Apr 6, 2018
1 parent e8118ec commit 59fb92c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion views/analysis.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
v-for="columnindex in numberofcolumns"
v-bind:style="{width : columnsize2 + '%'}">
<component is="textfeatureviewport"
ref="textfeatureviewports"
v-bind:columnindex="columnindex-1"
v-bind:numberofcolumns="numberofcolumns"
v-bind:serverip="serverip"
Expand Down Expand Up @@ -334,12 +335,17 @@
if (this.numberofcolumns === 1) {
this.tokenstoshow = this.tokenssplitted;
} else {
if (this.$refs['textfeatureviewports'] !== undefined && this.$refs['textfeatureviewports'].length > 0) {
for(let k = 0; k < this.$refs['textfeatureviewports'].length; k++){
console.log('check '+ k);
this.$refs['textfeatureviewports'].corefset = true;
}
}
let end = this.tokenssplittedindextoshow + this.numberofcolumns;
this.tokenstoshow = this.tokenssplitted.slice(this.tokenssplittedindextoshow, end);
}
},
changeScope: function (direction) {
if (direction) {
if (this.tokenssplittedindextoshow - 1 >= 0) {
this.tokenssplittedindextoshow--;
Expand Down
4 changes: 2 additions & 2 deletions views/components/analysis/text.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
v-on:mouseout="stophover"><span
class="nonPreAlt specialBracket"
v-bind:class="toHighlight"
v-if="classestomark.coref">{{bracketleft}}</span><span
v-if="classestomark.coref && bracketleft !== ''">{{bracketleft}}</span><span
class="nonPreAlt"
v-bind:class="toHighlight">{{token.content}}</span><span
class="nonPreAlt specialBracket"
v-bind:class="toHighlight"
v-if="classestomark.coref">{{bracketright}}</span><span
v-if="classestomark.coref && bracketright !== ''">{{bracketright}}</span><span
class="preAlt"
v-bind:class="classToHighlightGap">{{getWordGap3}}</span></span>
</template>
Expand Down
2 changes: 1 addition & 1 deletion views/components/analysis/textfeatureviewport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
style="border-right: 1px solid rgba(0,0,0,.1);margin: 0;padding: 8px; width: 50%; overflow-y: auto;"
v-on:scroll="onscrolltext">
<div class="mdl-grid" id="textWindow" ref="textWindow"
style="height: auto !important; display: contents; max-height: 100%; padding:0;">
style="height: auto !important; display: block; max-height: 100%; padding:0;">

<component is="tex"
ref="text"
Expand Down

0 comments on commit 59fb92c

Please sign in to comment.