Skip to content

Commit 6220ce5

Browse files
authored
Merge pull request #491 from rancher-sandbox/488-scroll-textbox-into-view
The 'fullWindow' object doesn't scroll, its grandparent does
2 parents b8c3fc9 + 29de4c8 commit 6220ce5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/Images.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,9 @@ export default {
283283
this.imageOutputCuller = getImageOutputCuller(command);
284284
285285
if (this.$refs.fullWindow) {
286-
this.$refs.fullWindow.scrollTop = this.$refs.fullWindow.scrollHeight;
286+
this.$nextTick(() => {
287+
this.$refs.fullWindow.parentElement.parentElement.scrollTop = this.$refs.fullWindow.scrollHeight;
288+
});
287289
}
288290
},
289291
deleteImage(obj) {

0 commit comments

Comments
 (0)