-
Notifications
You must be signed in to change notification settings - Fork 11
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
Control panels do not horizontally align correctly when sensor tool icons removed from sensor toolbox #940
Comments
Will look into! |
@AgustinVallejo @samreid and I made some progress on this. We found that if titleAlignX is set to 'center' in AdvancedAccordionBox, the panel alignment works but the title text is no longer left aligned. See below: This is not an ideal fix but it is getting us closer to the heart of the issue. Additionally, I found that there is an issue with the panel group width if the titleText string is long. See below: |
This looks like something I could help with, might be related to the layout engine? |
Should be fixed with the above commits. It seems like code was added that changed the collapsedBox's bounds AFTER we used those bounds for the workaroundBox. I also patched a case where the rectBounds of the workaroundBox would not have been getting properly updated. |
Excellent, thanks @jonathanolson! |
Things are looking great @jonathanolson thanks for looking into this! One remaining issue is the width of the advanced accordion box when the title text is long. This is likely a CCK issue that I can look into. See below: |
Perhaps try to find a way to reduce the maxWidth of that accordion box title/label? |
phetsims/sun#803 may be related to this issue. |
I believe the best long-term solution for this issue may involve a resizable accordion box, as described in phetsims/sun#803. For this release, it seems a very minor aesthetic issue in a corner case, and perhaps we should consider that, like related issue #939 (comment), this should not be a necessary feature for publishing this release. @arouinfar OK to remove this issue from the milestone? |
I agree. The behavior has improved since originally reported, and the remaining issue really seems more like an edge case tom.
Yes, untagging it now. |
In today's meeting, @arouinfar @matthew-blackman and I agreed that this issue can be closed, because it is a minor cosmetic issue for this sim, and cannot be implemented until the accordion box is resizable in phetsims/sun#803. We suspect another sim will bump the priority of that issue, then we can re-evaluate in other sims as necessary. |
When the voltmeter or ammeter icons are removed from the sensor toolbox via studio, the control panels do not align correctly. See screenshot below:
Investigating with the scenery inspector, it looks like the 'advanced' options panel is aligning left within a layout component that is larger than the panel itself. See screenshot below:
The text was updated successfully, but these errors were encountered: