yet another stupid question here: How do I use Scr...
# doodle
j
yet another stupid question here: How do I use ScrollPanel (JS/Browser)? I have a setup that looks like this:
Copy code
init {
        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...
n
are you using a Behavior?
ScrollPanel
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