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

Is there option to make Palette visible vertically instead of horizontally #574

Open
swaroopg92 opened this issue Mar 7, 2021 · 1 comment

Comments

@swaroopg92
Copy link

swaroopg92 commented Mar 7, 2021

When showSelectionPalette is set true, the Selectionpalette expands horizontally.
image
But the bottom of this palette is entirely empty and unecessary space, can I make this palette vertical?
If yes, how to do so?
Any help appreciated. Thanks.

@DanielOndiordna
Copy link

To show your palette vertically, you should modify the palette array to an array-of-arrays. From the examples:

 palette: [
        ['black', 'white', 'blanchedalmond',
        'rgb(255, 128, 0);', 'hsv 100 70 50'],
        ['red', 'yellow', 'green', 'blue', 'violet']
    ]

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

2 participants