fix for slack scroll

jh-changes
Shin'ya Ueoka 7 years ago
parent 3796b7de0d
commit 526009ba52
  1. 4
      src/shared/utils/dom.js

@ -83,7 +83,9 @@ const viewportRect = (e) => {
const isVisible = (element) => {
let rect = element.getBoundingClientRect();
if (rect.width === 0 || rect.height === 0) {
let style = window.getComputedStyle(element);
if (style.overflow !== 'visible' && (rect.width === 0 || rect.height === 0)) {
return false;
}
if (rect.right < 0 && rect.bottom < 0) {