Jakub Gwóźdź
06/16/2025, 11:14 AMinit {
val appScope = CoroutineScope(SupervisorJob() + Dispatchers.Default)
val theme = appScope.async { appTheme(fonts) }
val data = appScope.async { httpClient.get("/my-report.json").body<JsonObject>() }
appScope.launch {
val view = myGraphView(
theme = theme.await(),
textMetrics = textMetrics,
data = data.await(),
)
display += view
display.layout = constrain(display.first()) { it.edges eq parent.edges }
}
}
This works, but my myGraphView
can get pretty high and I'd like to have a vertical scroll bar. But As soon as I change display += view
to display = ScrollPanel(view)
, nothing gets rendered...Nick
06/17/2025, 5:33 AMScrollPanel
requires one to render. you can install the nativeScrollPanelBehavior() like this.
other Views do this as well: https://nacular.github.io/doodle/docs/troubleshooting/gotchas