MCPcopy Index your code
hub / github.com/LmeSzinc/AzurLaneAutoScript / scroll

Method scroll

module/webui/widgets.py:60–66  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58 self.scroll()
59
60 def scroll(self) -> None:
61 run_js(
62 r"""$("\#{dom_id}").animate({{scrollTop: $("\#{dom_id}").prop("scrollHeight")}}, 0);
63 """.format(
64 dom_id=self.id
65 )
66 )
67
68 def reset(self) -> None:
69 run_js(r"""$("\#{dom_id}>code").empty();""".format(dom_id=self.id))

Callers 1

appendMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected