This commit is contained in:
2020-08-27 22:58:19 +00:00
parent 389e04812e
commit 3441a89e0c

View File

@@ -1,5 +1,5 @@
<template> <template>
<div v-resize="onResize"> <v-card v-resize="onResize">
<MonacoEditor <MonacoEditor
class="editor" class="editor"
v-model="code" v-model="code"
@@ -7,7 +7,7 @@
:options="monacoOptions" :options="monacoOptions"
:style="editStyle()" :style="editStyle()"
/> />
</div> </v-card>
<!-- <gz-report-viewer <!-- <gz-report-viewer
:reportId="$route.params.recordid" :reportId="$route.params.recordid"
:ayaType="$route.params.ayatype" :ayaType="$route.params.ayatype"
@@ -64,18 +64,11 @@ export default {
methods: { methods: {
onResize() { onResize() {
// this.editAreaHeight = window.innerHeight / 2; // this.editAreaHeight = window.innerHeight / 2;
this.editAreaHeight = window.innerHeight * 0.9; this.editAreaHeight = window.innerHeight * 0.89;
}, },
editStyle() { editStyle() {
return "height: " + this.editAreaHeight + "px;"; return "width: 100%;height: " + this.editAreaHeight + "px;";
} }
} }
}; };
</script> </script>
<style>
.editor {
width: 100%;
height: 100%;
border: 1px solid grey;
}
</style>