diff --git a/src/renderer/components/watch-video-info/watch-video-info.js b/src/renderer/components/watch-video-info/watch-video-info.js index 0d218f2ba..f47f93179 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.js +++ b/src/renderer/components/watch-video-info/watch-video-info.js @@ -292,6 +292,18 @@ export default Vue.extend({ } ] }) + + this.$watch('$refs.downloadButton.dropdownShown', (dropdownShown) => { + this.$parent.infoAreaSticky = !dropdownShown + + if (dropdownShown && window.innerWidth >= 901) { + // adds a slight delay so we know that the dropdown has shown up + // and won't mess up our scrolling + Promise.resolve().then(() => { + this.$parent.$refs.infoArea.scrollIntoView() + }) + } + }) } }, methods: { diff --git a/src/renderer/components/watch-video-info/watch-video-info.vue b/src/renderer/components/watch-video-info/watch-video-info.vue index fbece05d0..15b6bc0e1 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.vue +++ b/src/renderer/components/watch-video-info/watch-video-info.vue @@ -95,6 +95,7 @@ /> -
+