Sorry, something went wrong.
🤖 Nx Cloud AI Fix EligibleAn automatically generated fix could have helped fix failing tasks for this run, but Self-healing CI is disabled for this workspace. Visit workspace settings to enable it and get automatic fixes in future runs. To disable these notifications, a workspace admin can disable them in workspace settings. View your CI Pipeline Execution ↗ for commit d1a2385
☁️ Nx Cloud last updated this comment at 2025-11-12 07:06:19 UTC |
Sorry, something went wrong.
PR Checklist
What is the current behavior?
When ProxyViewContainer.hidden = true is set, the container's isCollapsed property is set correctly for layout calculations, but the child views remain visible because ProxyViewContainer has no native view. Since children are directly added to the parent's native view tree, they need to have their hidden property set individually to be visually hidden.
This is described in issue #10912.
What is the new behavior?
When ProxyViewContainer.hidden = true is set, the hidden state is now properly propagated to all child views, making them visually hidden. The fix:
Added _applyHiddenToChildren method: Iterates through all child views and applies the hidden state to each one.
Overrode hiddenProperty for ProxyViewContainer: Registered a custom property handler that:
Updated _addViewToNativeVisualTree: When a new child is added, if the container is already hidden, the child's hidden property is immediately set to true.
This ensures that when ProxyViewContainer.hidden = true is set, all existing and future children are properly hidden, matching the expected behavior.
Fixes #10912.