Skip to content

Commit

Permalink
fix calc
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Feb 25, 2024
1 parent 5d4406a commit ca4da29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/utils/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export function isElemVisible(element) {
}

export function isHorizontallyOverflown(el) {
return (el.scrollWidth ?? 0) - (el.clientWidth ?? 0) > 1;
return (el.scrollWidth ?? 0) - (el.clientWidth ?? 0) > 0;
}

export function createElementFromHTML(str) {
Expand Down

0 comments on commit ca4da29

Please sign in to comment.