Merge pull request #491 from rancher-sandbox/488-scroll-textbox-into-view

The 'fullWindow' object doesn't scroll, its grandparent does
This commit is contained in:
Matt Farina
2021-08-12 10:37:51 -04:00
committed by GitHub

View File

@@ -283,7 +283,9 @@ export default {
this.imageOutputCuller = getImageOutputCuller(command);
if (this.$refs.fullWindow) {
this.$refs.fullWindow.scrollTop = this.$refs.fullWindow.scrollHeight;
this.$nextTick(() => {
this.$refs.fullWindow.parentElement.parentElement.scrollTop = this.$refs.fullWindow.scrollHeight;
});
}
},
deleteImage(obj) {