maximized close case dialog
This commit is contained in:
@@ -2736,6 +2736,23 @@ namespace FasdDesktopUi.Basics.UserControls
|
||||
}
|
||||
}
|
||||
|
||||
public void SetDialogContentMaxHeight(double maxHeight)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (DialogContentScrollViewer == null)
|
||||
return;
|
||||
|
||||
// Keep dialog usable on very small screens, but allow larger monitors to use space.
|
||||
var clamped = Math.Max(220, Math.Min(900, maxHeight));
|
||||
DialogContentScrollViewer.MaxHeight = clamped;
|
||||
}
|
||||
catch (Exception E)
|
||||
{
|
||||
LogException(E);
|
||||
}
|
||||
}
|
||||
|
||||
private void DropDownClosed(object sender, EventArgs e)
|
||||
{
|
||||
if (!(sender is FrameworkElement fe)) return;
|
||||
|
||||
Reference in New Issue
Block a user