1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 15:57:57 +01:00

Make [[ and ]] work better.

This commit is contained in:
Kris Maglione
2014-07-30 00:06:46 -07:00
parent 42859c7633
commit b71b724ccb
2 changed files with 12 additions and 11 deletions

View File

@@ -302,7 +302,7 @@ var HintSession = Class("HintSession", CommandMode, {
rect.left > offsets.right || rect.right < offsets.left)
return false;
if (!rect.width || !rect.height)
if (!rect.width && !rect.height)
if (!Array.some(elem.childNodes, elem => elem instanceof Element
&& DOM(elem).style.float != "none"
&& isVisible(elem)))
@@ -1125,7 +1125,7 @@ var Hints = Module("hints", {
}, {
isVisible: function isVisible(elem, offScreen) {
let rect = elem.getBoundingClientRect();
if (!rect.width || !rect.height)
if (!rect.width && !rect.height)
if (!Array.some(elem.childNodes, elem => elem instanceof Element
&& DOM(elem).style.float != "none"
&& isVisible(elem)))