From c9c30eaf450787a7bfe25588b48ce43f5298fa77 Mon Sep 17 00:00:00 2001 From: Thomas Johnson Date: Sun, 26 Nov 2017 15:20:01 -0800 Subject: [PATCH] Fixing spacing issue in kdom. (#43) --- karax/kdom.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/karax/kdom.nim b/karax/kdom.nim index c276bfb..a9b80b2 100644 --- a/karax/kdom.nim +++ b/karax/kdom.nim @@ -1223,8 +1223,8 @@ proc clientWidth*(): int {. proc inViewport*(el: Node): bool = let rect = el.getBoundingClientRect() result = rect.top >= 0 and rect.left >= 0 and - rect.bottom <= clientHeight().float and - rect.right <= clientWidth().float + rect.bottom <= clientHeight().float and + rect.right <= clientWidth().float proc scrollTop*(e: Node): int {.importcpp: "#.scrollTop", nodecl.} proc offsetHeight*(e: Node): int {.importcpp: "#.offsetHeight", nodecl.}