Description:
When using vtkRenderer in a Trame application with local mode using a SinglePageWithDrawerLayout instance, the specified background color is not displayed on initial rendering with no data. Instead, the background appears white until the user interacts with the UI, after which the correct background color is rendered.
In contrast, in remote mode, the proper background color appears initially as expected.
Environment:
System: macOS Sonoma 14.3
Browser: Chrome
VTK Version: 9.4.2 (pip)
Trame Version: 3.8.2 (pip)
Trame-VTK version: 2.8.15 (pip)
Notes:
This appears to be a timing or render sync issue specific to local mode rendering. It may be related to VtkRemoteLocalView not triggering an initial render or the render window not being fully initialized at the moment SetBackground() is called.