DRT-228:DRT new UI is not displaying correctly its screen when the browser has a resize

This commit is contained in:
Fabio Guachalla
2022-01-14 12:17:36 -04:00
parent 8ade1b59b5
commit 80012ed9c5

View File

@@ -19,11 +19,12 @@ export default {
pageUri: String,
},
mounted() {
this.height = window.innerHeight - this.diffHeight;
this.height = `${window.innerHeight - this.diffHeight}px`;
window.addEventListener('resize', this.autoResizeFrame);
},
data() {
return {
height: "100%",
height: "0px",
width: "100%",
diffHeight: 10
};
@@ -32,6 +33,11 @@ export default {
classBtn(cls) {
return "btn v-btn-request " + cls;
},
autoResizeFrame(event) {
event.preventDefault();
this.height = `${window.innerHeight - this.diffHeight}px`;
event.stopPropagation();
},
},
};
</script>