This commit is contained in:
2020-04-18 00:58:54 +00:00
parent b3910673ac
commit 0b4ae41263

View File

@@ -16,22 +16,18 @@
<v-btn color="white" :value="view.HIDDEN_VIEW"> <v-btn color="white" :value="view.HIDDEN_VIEW">
<v-icon>fa-eye-slash</v-icon> <v-icon>fa-eye-slash</v-icon>
</v-btn> </v-btn>
<v-btn color="white" :value="view.WIKI_VIEW"> <v-btn color="white" :value="view.WIKI_VIEW">
<v-icon>fa-eye</v-icon> <v-icon>fa-eye</v-icon>
</v-btn> </v-btn>
<v-btn color="white" :value="view.DESIGN_VIEW"> <v-btn color="white" :value="view.DESIGN_VIEW">
<v-icon>fa-edit</v-icon> <v-icon>fa-edit</v-icon>
</v-btn> </v-btn>
<v-btn color="white" :value="view.SPLIT_VIEW"> <v-btn color="white" :value="view.SPLIT_VIEW">
<v-icon>fa-columns</v-icon> <v-icon>fa-columns</v-icon>
</v-btn> </v-btn>
</v-btn-toggle> </v-btn-toggle>
</div> </div>
</template> </template>
<v-sheet <v-sheet
v-if="currentView != this.view.HIDDEN_VIEW" v-if="currentView != this.view.HIDDEN_VIEW"
elevation="2" elevation="2"
@@ -81,10 +77,10 @@
<v-icon>fa-square-full</v-icon></v-btn <v-icon>fa-square-full</v-icon></v-btn
> >
</div> </div>
<div :style="wikiStyle()"> <div :style="editStyle()">
<v-textarea <v-textarea
outlined outlined
:height="effectiveEditAreaHeight()" :height="editAreaHeight"
ref="editArea" ref="editArea"
@input="handleInput" @input="handleInput"
@dblclick="handleDoubleClick" @dblclick="handleDoubleClick"
@@ -147,11 +143,11 @@ export default {
// this.editAreaHeight = window.innerHeight / 2; // this.editAreaHeight = window.innerHeight / 2;
this.editAreaHeight = window.innerHeight * 0.8; this.editAreaHeight = window.innerHeight * 0.8;
}, },
effectiveEditAreaHeight() { editStyle() {
if (this.currentView == this.view.SPLIT_VIEW) { if (this.currentView == this.view.SPLIT_VIEW) {
return this.editAreaHeight; return "height: " + this.editAreaHeight + "px;";
} else { } else {
return this.editAreaHeight; //property, can't return false return false; //false attributes don't get rendered
} }
}, },
wikiStyle() { wikiStyle() {