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 any option to customise height & width of picker. #182

Open
Sachien opened this issue Feb 19, 2018 · 2 comments
Open

Is there any option to customise height & width of picker. #182

Sachien opened this issue Feb 19, 2018 · 2 comments

Comments

@Sachien
Copy link

Sachien commented Feb 19, 2018

I wonder if there is any easy way to pass height and width for picker dimension via options/any. Or "radius" when options.round = true.

@brandonn1231
Copy link

@Sachien were you able to find a solution to this? I'm trying to edit the width of the picker as well, but whenever I try to manually do it via targeting the classes, the picker just repeats itself.

@Sachien
Copy link
Author

Sachien commented Mar 19, 2019

@brandonn1231 Yes I could do this by modifying library code as below.

this.pickerDimensions = {
    width: 300, // affects height actually
    height: 400// affects width actually
};

// this.pickerDimensions.height is replaced with this.pickerDimensions.width and vice versa
this.sliderDimensions = {
    width: this.options.horizontal ? this.pickerDimensions.height : 20,
    height: this.options.horizontal ? 20 : this.pickerDimensions.width
};

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