Skip to content

Commit

Permalink
fix #8
Browse files Browse the repository at this point in the history
  • Loading branch information
shih-liang authored Dec 26, 2021
1 parent bcc2036 commit b31a06d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/osdlyrics.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
if (!ipcRenderer) {
return;
}
offsetHeight = document.getElementById('line1').offsetHeight + 4;
if (offsetHeight == window.innerHeight) {
offsetHeight = document.getElementById('line1').offsetHeight;
if (offsetHeight < window.innerHeight) {
return;
}
ipcRenderer.send('resizeOSDLyrics', offsetHeight);
Expand Down Expand Up @@ -237,4 +237,4 @@
<div id="line1">YesPlayMusic</div>
</body>

</html>
</html>

0 comments on commit b31a06d

Please sign in to comment.