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

Change GQSlider so it doesn't decorate with a label #208

Closed
jessegreenberg opened this issue Aug 19, 2024 · 2 comments
Closed

Change GQSlider so it doesn't decorate with a label #208

jessegreenberg opened this issue Aug 19, 2024 · 2 comments

Comments

@jessegreenberg
Copy link
Contributor

From phetsims/sun#860, GQSlider was flagged as a component that decorates a slider with a label. Changed in the following commit, @pixelzoom can you please review or change how you would like?

@pixelzoom
Copy link
Contributor

pixelzoom commented Aug 19, 2024

I'm not totally clear on why the Decorator pattern can't be used with VSlider. But assuming that's the case...

f8f7f18 introduced a bug - when the slider is hidden in Studio, the label is not hidden. I fixed that in 3dc1666.

I'm also not sure how I feel about passing VSliderOptions directly to the constructor of a Node subclass. It seems like the API should be changed. Let me ruminate on that a bit.

pixelzoom added a commit that referenced this issue Aug 20, 2024
@pixelzoom
Copy link
Contributor

I'm also not sure how I feel about passing VSliderOptions directly to the constructor of a Node subclass. ...

I addressed this in 143ad14 by revising the options API for GQSlider.

Closing.

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

No branches or pull requests

2 participants