Quickfix for some missing hints on some pages (#62).
authorDaniel Carl <danielcarl@gmx.de>
Sat, 18 Jan 2014 23:20:46 +0000 (00:20 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 18 Jan 2014 23:20:46 +0000 (00:20 +0100)
This patch removed the dimension check for the hinted element. There are
cases, where the hinted element ha no height but contains dimensioned child
nodes. At the moment it's hard to work out the right logic when a none
dimensioned hint element should be hinted or not.

src/hints.js

index 7c4cef8..8a0ac78 100644 (file)
@@ -115,8 +115,7 @@ Object.freeze((function(){
                 var rect = e.getBoundingClientRect();
                 if (!rect ||
                     rect.top > offsets.bottom || rect.bottom < offsets.top ||
-                    rect.left > offsets.right || rect.right < offsets.left ||
-                    !rect.width || !rect.height
+                    rect.left > offsets.right || rect.right < offsets.left
                 ) {
                     return false;
                 }