Skip to content

Commit c119c89

Browse files
committed
fix: sometimes the popup size would be super tiny
1 parent 142dbc5 commit c119c89

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

popup/popup.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ chrome.tabs.query({ active: true, currentWindow: true }, (results) => {
121121
$content.style.marginTop = 0;
122122
}
123123

124-
renderContent();
124+
requestAnimationFrame(renderContent);
125125
});
126126

127127

@@ -529,7 +529,6 @@ function setVideoPositions(group) {
529529
group.queueable = group.videos.filter(v => !v.watched && !v.queued).reverse();
530530
group.$queueAll.classList.toggle('hidden', group.queueable.length < 2);
531531

532-
group.$videos.style.height = (VIDEO_HEIGHT * group.videos.length) + 'px';
533532
group.videos.forEach((video, i) => {
534533
if (!video.$video) { return; }
535534
var top = (VIDEO_HEIGHT * i) + 'px';

0 commit comments

Comments
 (0)