scrollTop must be settable (#13263)
* scrollTop must be assignable Make scrollTop settable * add missing export
This commit is contained in:
parent
a71654323d
commit
32f0910f11
1 changed files with 1 additions and 0 deletions
|
|
@ -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.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue