diff --git a/src/PBAnaly/MainForm.cs b/src/PBAnaly/MainForm.cs index 0035da5..c9ffc6a 100644 --- a/src/PBAnaly/MainForm.cs +++ b/src/PBAnaly/MainForm.cs @@ -189,7 +189,11 @@ namespace PBAnaly private void MainForm_SizeChanged(object sender, EventArgs e) { - + //刷新 + foreach (var item in bioanalysisMannages) + { + item.Value.GetImagePanel.CenterPictureBox(); + } } private void materialButton_LoadData_Click(object sender, EventArgs e) diff --git a/src/PBAnaly/UI/BioanalyImagePanel.cs b/src/PBAnaly/UI/BioanalyImagePanel.cs index 63e01ff..ca345b3 100644 --- a/src/PBAnaly/UI/BioanalyImagePanel.cs +++ b/src/PBAnaly/UI/BioanalyImagePanel.cs @@ -265,8 +265,8 @@ namespace PBAnaly.UI int h = (int)(pl_bg_panel.Height * factor); if (w < pl_panel_image.Width - 50 || h < pl_panel_image.Height - 50) { - w = pl_panel_image.Width - 50; - h = pl_panel_image.Height - 50; + w = pl_panel_image.Width ; + h = pl_panel_image.Height ; } if (w > pl_panel_image.Width * 5 || h > pl_panel_image.Height * 5)