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