Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LazyColumn] Vertical scrollbar doesn't work properly when LazyColumn exists StickyHeader #2940

Closed
ShirasawaSama opened this issue Mar 30, 2023 · 2 comments · Fixed by JetBrains/compose-multiplatform-core#504
Assignees
Labels
bug Something isn't working p:high High priority scroll

Comments

@ShirasawaSama
Copy link

ShirasawaSama commented Mar 30, 2023

Describe the bug
Vertical scrollbar doesn't work properly when LazyColumn exists StickyHeader.

Affected platforms
Desktop

Versions

  • Kotlin version*: 1.8.10
  • Compose Multiplatform version*: 1.4.0-alpha01-dev985
  • OS version(s)* (required for Desktop and iOS issues): Windows 10
  • OS architecture (x86 or arm64): x86
  • JDK (for desktop issues): liberica-19.0.2

To Reproduce

Box(Modifier.fillMaxSize()) {
  val state = rememberLazyListState()
  LazyColumn(state = state) {
    stickyHeader {
      Box(Modifier.size(100.dp).background(Color.Red))
    }
    item {
      Box(Modifier.size(1000.dp).background(Color.Blue))
    }
  }
  VerticalScrollbar(rememberScrollbarAdapter(state), Modifier.align(Alignment.CenterEnd).fillMaxHeight())
}

Screenshots
aaa

@ShirasawaSama ShirasawaSama added bug Something isn't working submitted labels Mar 30, 2023
@m-sasha
Copy link
Contributor

m-sasha commented Mar 30, 2023

Thanks for the report. I'll look into it.

@m-sasha m-sasha removed the submitted label Mar 30, 2023
@m-sasha m-sasha self-assigned this Mar 30, 2023
@igordmn
Copy link
Collaborator

igordmn commented Mar 31, 2023

In 1.2.0, 1.3.0 Srollbar also behaves buggy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p:high High priority scroll
Projects
None yet
3 participants