Forráskód Böngészése

Merge pull request #1756 from afshin/scroll-fix

Hover box initial position bug fix
Steven Silvester 8 éve
szülő
commit
3411a8f8bb
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      src/common/hoverbox.ts

+ 2 - 2
src/common/hoverbox.ts

@@ -128,8 +128,8 @@ namespace HoverBox {
 
     // Make sure the box ought to be visible.
     let withinBounds = maxHeight > minHeight &&
-                       spaceBelow >= lineHeight &&
-                       spaceAbove >= anchorRect.top;
+      (spaceBelow >= lineHeight || spaceAbove >= anchorRect.top);
+
     if (!withinBounds) {
       node.classList.add(OUTOFVIEW_CLASS);
       return;