scrollTop must be settable (#13263)

* scrollTop must be assignable

Make scrollTop settable

* add missing export
This commit is contained in:
Jairo
2020-01-27 09:14:56 +01:00
committed by Andreas Rumpf
parent a71654323d
commit 32f0910f11

View File

@@ -1270,6 +1270,7 @@ proc inViewport*(el: Node): bool =
rect.right <= clientWidth().float
proc scrollTop*(e: Node): int {.importcpp: "#.scrollTop", nodecl.}
proc `scrollTop=`*(e: Node, value: int) {.importcpp: "#.scrollTop = #", nodecl.}
proc scrollLeft*(e: Node): int {.importcpp: "#.scrollLeft", nodecl.}
proc scrollHeight*(e: Node): int {.importcpp: "#.scrollHeight", nodecl.}
proc scrollWidth*(e: Node): int {.importcpp: "#.scrollWidth", nodecl.}