Giter Club home page Giter Club logo

Comments (6)

commandiron avatar commandiron commented on September 27, 2024

Thanks for your request. Actually, row count option could be nice. I will look at as soon as possible.

from wheelpickercompose.

haohao9102 avatar haohao9102 commented on September 27, 2024

I try to change the number of rows, but there will be a jump when the scroll ends, and I can't find the reason

from wheelpickercompose.

commandiron avatar commandiron commented on September 27, 2024

you are right, I can change to number of rows too but this broke the snap and output logic because i believe this change the first visible index. we must find a way to achieve this.

from wheelpickercompose.

commandiron avatar commandiron commented on September 27, 2024

hey, i added rowCount parameter so now number of rows can be change. This release include this feature.

from wheelpickercompose.

haohao9102 avatar haohao9102 commented on September 27, 2024

i see the changes size.height / rowCount * ((rowCount - 1 )/ 2) why this calculation?

from wheelpickercompose.

commandiron avatar commandiron commented on September 27, 2024

hi this calculation for calculate to top of selection box height. Lazy Column needs vertical padding for select first item or select last item.
Calculations;
Size.height / rowCount -> 1 item height,
*
(rowCount - 1 / 2) -> item count of top, example; 3 item - 1 item on top, 5 item - 2 item of top, 7 item - 3 item of top.
= Height of top of selection items.

Screenshot_20230105_133850

from wheelpickercompose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.