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

Masonery not correctly layout because force to have invisible columns #163

Open
c0ncentus opened this issue Jan 6, 2022 · 0 comments
Open

Comments

@c0ncentus
Copy link

hi, I want order in alphabet order so

return <div className="lexcoAlphabet_Cpnt">
            <Masonry options={{
                fitWidth: true,
                gutter: 1,
                itemSelector: ".smhold",
                horizontalOrder: true,
                resize: true,
            }}>
                {ALPHABET.map((a, i) => {
                    const { height, width } = this.valueToPrct(letters.filter((x) => { return x.toUpperCase() === a }).length, norm)
                    return <div
                        key={a}
                        onClick={() => { if (onClickLetter !== undefined) { onClickLetter(a) } }}
                        className="smhold"
                        style={{ backgroundColor: this.props.color[i], width, height }}>
                        <div className="shine">
                            <span className="icons">{a.toLowerCase()}</span>
                        </div>
                    </div>
                })}
            </Masonry>
        </div>

image

but excpected this (no for colors but orders (mainly due to not flexible col)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant