mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
scrollTop must be settable (#13263)
* scrollTop must be assignable Make scrollTop settable * add missing export
This commit is contained in:
@@ -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.}
|
||||
|
||||
Reference in New Issue
Block a user