set up location and size for ALL GenericBrowserPopups, not just the ObjectModel one

This commit is contained in:
Michael Becker 2020-01-25 03:31:36 -05:00
parent c41f6973d3
commit d7f9f74e5d
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7

View File

@ -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)