From c4bc3e1dd394184f6fac0f5fa1b3a1ba7c3cad0c Mon Sep 17 00:00:00 2001 From: WMJ Date: Wed, 16 Nov 2022 14:49:54 +0800 Subject: [PATCH] =?UTF-8?q?=EF=BC=8D=E4=BF=AE=E5=A4=8D=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E5=AF=B9=E8=AF=9D=E6=A1=86=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/Functions/Editor/Commands/PagePropertiesCommand.cs | 2 +- App/Functions/Editor/PagePropertyForm.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/App/Functions/Editor/Commands/PagePropertiesCommand.cs b/App/Functions/Editor/Commands/PagePropertiesCommand.cs index 06ada0b..f19222b 100644 --- a/App/Functions/Editor/Commands/PagePropertiesCommand.cs +++ b/App/Functions/Editor/Commands/PagePropertiesCommand.cs @@ -15,9 +15,9 @@ namespace PDFPatcher.Functions.Editor var p = v.TransposeVirtualImageToPagePosition(l.X, l.Y); var f = GetDialog(); using (var page = controller.Model.PdfDocument.LoadPage(p.Page)) { - f.LoadPage(page); f.Location = v.PointToScreen(v.TransposeVirtualImageToClient(l.X, l.Y)); f.Show(); + f.LoadPage(page); } } diff --git a/App/Functions/Editor/PagePropertyForm.cs b/App/Functions/Editor/PagePropertyForm.cs index efd8642..702b42c 100644 --- a/App/Functions/Editor/PagePropertyForm.cs +++ b/App/Functions/Editor/PagePropertyForm.cs @@ -21,6 +21,7 @@ namespace PDFPatcher.Functions.Editor _CloseButton.Click += (s, args) => Hide(); _FontNameColumn.AsTyped(f => f.AspectGetter = o => o.FontName); _SizeColumn.AsTyped(f => f.AspectGetter = o => o.Size); + _TextStyleBox.ScaleColumnWidths(); } public void LoadPage(MuPage page) { -- GitLab