TcOpenGroup / TcOpen

Application framework for industrial automation built on top of TwinCAT3 and .NET.
https://docs.tcopengroup.org/
MIT License
281 stars 48 forks source link

[BUG] Window not rendered after resizing #725

Closed KrisztianOlah closed 3 months ago

KrisztianOlah commented 3 months ago

Describe the bug When resizing the window it shows a white blank screen, contents are not rendered.

To Reproduce Upgrade from 0.11.0-alpha.65 to 0.11.0-alpha.71 Resize the window

Screenshots image image

Additional context The problem presists in 0.11.0-alpha.71 Commenting out UserInfoDisplay fixes the issue, thus must be the culprit.

KrisztianOlah commented 3 months ago

Upon further examination it looks like WPF is having an issue figuring out in which order to calculate the height of the MainView UserControl and its elements. Binding MenuAssist.TopLevelMenuItemHeight to UserInfoDisplayView.ActualHeight seems to fix the issue.

PR to follow shortly.

KrisztianOlah commented 3 months ago

/cib

github-actions[bot] commented 3 months ago

Branch 725-_BUG_Window_not_rendered_after_resizing created!

KrisztianOlah commented 3 months ago

Will fix in https://github.com/TcOpenGroup/tcopen-app-templates/issues/138