From 712db94bec6c93137fa384ef32b904b41632b4c5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 29 Mar 2026 21:30:56 +0000 Subject: [PATCH 1/2] Initial plan From 83089dcaee60570b419cf17fc5a48be0e4efc017 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 29 Mar 2026 21:35:19 +0000 Subject: [PATCH 2/2] Fix wrong border on fractional DPI by using Math.Ceiling in ScaleSize Agent-Logs-Url: https://github.com/modern-forms/Modern.Forms/sessions/d0c46711-dd38-48bb-882b-ca5e8f824e59 Co-authored-by: jpobst <179295+jpobst@users.noreply.github.com> --- src/Modern.Forms/MenuDropDown.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Modern.Forms/MenuDropDown.cs b/src/Modern.Forms/MenuDropDown.cs index 0d5f748..0551dac 100644 --- a/src/Modern.Forms/MenuDropDown.cs +++ b/src/Modern.Forms/MenuDropDown.cs @@ -117,8 +117,8 @@ internal static Size ScaleSize (Size startSize, float x, float y) { var size = startSize; - size.Width = (int)Math.Round ((float)size.Width * x); - size.Height = (int)Math.Round ((float)size.Height * y); + size.Width = (int)Math.Ceiling ((float)size.Width * x); + size.Height = (int)Math.Ceiling ((float)size.Height * y); return size; }