aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJez Ng2012-08-26 00:07:47 -0700
committerJez Ng2012-08-26 00:07:47 -0700
commit2ddbd58971bb07cc6cbde48e075b0f7aa10dcb03 (patch)
treec911aad0b4880cbfdce6b9d17a517ef3fe46537d
parentba163a2975dabc967ff324b7834919ee76dc833e (diff)
downloadvimium-2ddbd58971bb07cc6cbde48e075b0f7aa10dcb03.tar.bz2
Fix rectangle flashing on pages with a relative-positioned <body>.
-rw-r--r--lib/dom_utils.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index 57930f80..d4a4d379 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -128,8 +128,8 @@ DomUtils =
flashEl.style.top = rect.top + window.scrollY + "px"
flashEl.style.width = rect.width + "px"
flashEl.style.height = rect.height + "px"
- document.body.appendChild(flashEl)
- setTimeout((-> flashEl.parentNode.removeChild(flashEl)), 400)
+ document.documentElement.appendChild(flashEl)
+ setTimeout((-> DomUtils.removeElement flashEl), 400)
root = exports ? window
root.DomUtils = DomUtils