Open pixelzoom opened 1 year ago
@arouinfar FYI. I don't think this needs to be blocking, because it's not useful to hide the entire contents of an AccordionBox. But it is confusing when the AccordionBox disappears, so I've labeled with "high" priority.
I don't think it's blocking, either. This seems like an extension of how we deal with panels. If a panel's children are all hidden, the panel will disappear. You can see this in action with greenhouseEffect.wavesScreen.view.observationWindow.instrumentVisibilityPanel.checkboxGroup.energyBalanceCheckbox.visibleProperty
(a panel with only one child).
It feels a bit strange in AccordionBox because it will disappear while its ExpandCollapseButton is still visible.
If a panel's children are all hidden, the panel will disappear.
That seems fine for Panel, since there would be nothing to display other than a border and fill color.
It feels a bit strange in AccordionBox because it will disappear while its ExpandCollapseButton is still visible.
That's my feeling too. An AccordionBox is not empty when it's content is hidden. It still has a title and ExpandCollapseButton.
There appears to be a bug in the dynamic layout of AccordionBox. If it's content becomes invisible (or maybe if it's content has no bounds?) the entire AccordionBox becomes invisible.
To reproduce:
graphingQuadratics.standardFormScreen.view.equationAccordionBox
.graphingQuadratics.standardFormScreen.view.equationAccordionBox.interactiveEquationNode.visibleProperty
graphingQuadratics.standardFormScreen.view.equationAccordionBox.buttonGroup.visibleProperty
... and note that
equationAccordionBox
becomes invisible.@arouinfar FYI. I don't think this needs to be blocking, because it's not useful to hide the entire contents of an AccordionBox. But it is confusing when the AccordionBox disappears, so I've labeled with "high" priority.