Closed jason-crow closed 4 weeks ago
@raplemie @jjbeckman13
@jason-crow The second part of the expectation, that the navigation aid main view being unaffected by a widget viewport would be a new behavior, because all other tools are dependent/visible based on the active viewport, so it is not new with 4.16.
The first expectation used to work in 4.14.4 though (didnt test with 4.15)
@GerardasB The deprecation of the ViewportContentControl
may be related to this, but that deprecation is problematic because the suggested new way, overriding the ViewToolWidgetComposer
props, requires a change in architecture of our library, because when we provide a widget, we dont provide these props to say what navigation aid should be active...
@raplemie you're right! I didn't realize this was already an issue, but the only new part seems to be the default 2d navigation cube , which made me notice this issue
This is 4.14.1 which demonstrates the issue only the navigation cube is hidden unlike in 4.16
@raplemie just to point out its not a unique problem for the sheet viewer, because the 2d frontstage also has the same issue, which is why i mentioned the navigationAidControl override because that was what was previously preventing the default from showing
this shows both the 2d frontstage and sheet viewer demonstrating the issue
https://github.com/iTwin/appui/pull/970 should address the regression where returning an empty string for a navigation aid control would not be respected and a default navigation aid would still be rendered.
Describe the bug
ViewportContentControl
overrides thenavigationAidControl
property to return an empty string, this would prevent any navigation aid from showing. This was used to suppress the default 2d navigation aid from showing. Now the 2d navigation aid appears despite the override.To Reproduce
Default 2d Navigation Aid is no longer suppressed by navigationAidControl override
make the main frontstage use a viewport control with logic like
notice the default 2d navigation cube appears
2d Navigation Aid shows in main view when opening a 2d view in a viewport control even when the main view remains 3d
Expected Behavior
Expected behavior is for the default 2d navigation cube to continue to be hidden when overriding the
navigationAidControl
to return an empty string and also for the navigation aid of the main view to be unaffected by the viewport control that a widget maybe usingScreenshots
No response
Desktop (please complete the applicable information)
No response
Additional context
reproducible in 4.16.0