Skip to content

Patch Fixes from CargoWise.Controls.WinForms.Legacy#13

Open
zuizuihao wants to merge 3 commits intomasterfrom
SPG/legacy_patchs
Open

Patch Fixes from CargoWise.Controls.WinForms.Legacy#13
zuizuihao wants to merge 3 commits intomasterfrom
SPG/legacy_patchs

Conversation

@zuizuihao
Copy link
Copy Markdown

temporarily fixed WebBrowser memory leak (WI00938771)
https://github.com/WiseTechGlobal/CargoWise.Controls.WinForms.Legacy

ZGN-WTG and others added 3 commits March 24, 2026 17:58
Change WebBrowser references in WebBrowserSiteBase and WebBrowserEvent to a WeakReference.
Temporary fix while waiting for dotnet#13769

(cherry picked from commit 1ca4f6d)
…and fix graphics state restoration in PaintEventArgs (WI00857973)
- Added a new button in MainForm to demonstrate the AnchorLayoutHighDpiRegression.
- Refactored Program.cs to set the main method as private and removed unnecessary comments regarding high DPI settings.
- Introduced AnchorLayoutHighDpiRegressionTests to validate the behavior of bottom/right-anchored controls in high DPI scenarios.
- Created a detailed markdown document outlining the high-DPI regression issues and proposed solutions.
- Added compatibility logic in DefaultLayout.AnchorLayoutCompat.cs to handle stale positive anchors and stretch-anchor recovery.
- Updated DefaultLayout.cs to integrate the new compatibility checks for anchor information during layout calculations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants