Skip to content

Commit

Permalink
-修复页面属性对话框初始显示不正确的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Nov 16, 2022
1 parent a9d03ec commit c4bc3e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion App/Functions/Editor/Commands/PagePropertiesCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public void Process(Controller controller, params string[] parameters) {
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);
}
}

Expand Down
1 change: 1 addition & 0 deletions App/Functions/Editor/PagePropertyForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ void OnLoad() {
_CloseButton.Click += (s, args) => Hide();
_FontNameColumn.AsTyped<MuFontAndSize>(f => f.AspectGetter = o => o.FontName);
_SizeColumn.AsTyped<MuFontAndSize>(f => f.AspectGetter = o => o.Size);
_TextStyleBox.ScaleColumnWidths();
}

public void LoadPage(MuPage page) {
Expand Down

0 comments on commit c4bc3e1

Please sign in to comment.