fixed textbox
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
</select>
|
</select>
|
||||||
<button id="export-button" onclick="exportReport()">Export</button>
|
<button id="export-button" onclick="exportReport()">Export</button>
|
||||||
</div>
|
</div>
|
||||||
<textarea id="export-textarea" readonly></textarea>
|
<textarea id="export-textarea"></textarea>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const exportTextarea = document.getElementById('export-textarea');
|
const exportTextarea = document.getElementById('export-textarea');
|
||||||
@@ -64,6 +64,7 @@
|
|||||||
}
|
}
|
||||||
}).then(text => {
|
}).then(text => {
|
||||||
exportTextarea.value = text;
|
exportTextarea.value = text;
|
||||||
|
exportTextarea.style.height = "auto";
|
||||||
exportTextarea.style.height = exportTextarea.scrollHeight + "px";
|
exportTextarea.style.height = exportTextarea.scrollHeight + "px";
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
exportTextarea.value = 'Error while fetching report';
|
exportTextarea.value = 'Error while fetching report';
|
||||||
|
|||||||
Reference in New Issue
Block a user