-
Notifications
You must be signed in to change notification settings - Fork 12
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
optimize margin around ComboBoxButton's arrow button #453
Comments
Signed-off-by: Chris Malley <[email protected]>
Signed-off-by: Chris Malley <[email protected]>
Signed-off-by: Chris Malley <[email protected]>
Signed-off-by: Chris Malley <[email protected]>
ComboBoxButton is now divided into 2 "areas" with a vertical separator between them. The "item area" is to the left of the separator and displays the selected item. It's margin is determined by options The "arrow area" is to the right of the separator and displays an up or down arrow, depending on the value of This provides a uniform "look" for the button's arrow without requiring additional options. With the change and the changes in #430, many margin-related options have been reduced to Example in BLL: Examples in Gas Properties: Examples in scenery-phet demo: |
@ariel-phet please assign someone to review. |
@ariel-phet ping. I'd like to get the ComboBox work wrapped up. |
@pixelzoom These options look great. Just one note and close if this is a non-issue. Setting Perhaps this is a good time to pass Here is an example in Gas-Properties: Assigning @pixelzoom for input. |
Accidently closed. |
…boBoxListItemNode, #453 Signed-off-by: Chris Malley <[email protected]>
Signed-off-by: Chris Malley <[email protected]>
Thanks @Denz1994, good suggestion about corner radius. Changes in the above commits:
That said... There are undoubtedly ways to make ComboBox look bad. For example Back to you for review. |
This is a definite improvement and I agree with the below comment:
Closing this one. |
Discussed with @ariel-phet.
ComboBoxButton's
xMargin
andyMargin
are currently applied to both the item and the arrow parts of the button. But asxMargin
increases, the margin around the arrow becomes unnecessarily large. In general, we want to keep the arrow part of the button looking roughly square. So...I'll investigate computing the margin around the arrow so it looks square. If that's not possible, I'll add an
arrowXMargin
. I'd most definitely prefer the former.The text was updated successfully, but these errors were encountered: