From d7f9f74e5dd200137434630adb03e56202d28f08 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Sat, 25 Jan 2020 03:31:36 -0500 Subject: [PATCH] set up location and size for ALL GenericBrowserPopups, not just the ObjectModel one --- .../Dialogs/DocumentPropertiesDialog.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs index 812947b9..660244d0 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs @@ -237,9 +237,9 @@ namespace UniversalEditor.UserInterface.Dialogs }; popup.SelectedObject = mvarDataFormat; - // Vector2D loc = ClientToScreenCoordinates(cmdDataFormat.Location); - // popup.Location = new Vector2D(loc.X, loc.Y + cmdDataFormat.Size.Height); - // popup.Size = new Dimension2D(this.Size.Width, 200); + Vector2D loc = ClientToScreenCoordinates(cmdDataFormat.Location); + popup.Location = new Vector2D(loc.X, loc.Y + cmdDataFormat.Size.Height); + popup.Size = new Dimension2D(this.Size.Width, 200); DataFormatReference[] dfrs = new DataFormatReference[0]; if (Mode == DocumentPropertiesDialogMode.Save) @@ -303,8 +303,8 @@ namespace UniversalEditor.UserInterface.Dialogs dlg.SelectedObject = mvarAccessor; Vector2D loc = ClientToScreenCoordinates(cmdAccessor.Location); - // dlg.Location = new Vector2D(loc.X, loc.Y + cmdAccessor.Size.Height); - // dlg.Size = new Dimension2D(this.Size.Width, 200); + dlg.Location = new Vector2D(loc.X, loc.Y + cmdAccessor.Size.Height); + dlg.Size = new Dimension2D(this.Size.Width, 200); AccessorReference[] ars = UniversalEditor.Common.Reflection.GetAvailableAccessors(); foreach (AccessorReference ar in ars)