maximized close case dialog

This commit is contained in:
Meik
2026-02-09 20:28:24 +01:00
parent bf9d37d7af
commit deb8d43911
2 changed files with 8 additions and 5 deletions

View File

@@ -26,6 +26,8 @@ namespace FasdDesktopUi.Basics.UserControls
{
public partial class CloseCaseDialogWithTicket : UserControl
{
private const double MinDialogContentHeightDip = 220d;
#region Fields & Properties
private readonly Dictionary<string, string> _errors = new Dictionary<string, string>();
@@ -2743,9 +2745,8 @@ namespace FasdDesktopUi.Basics.UserControls
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;
// Keep dialog usable on very small screens; parent window already constrains max size.
DialogContentScrollViewer.MaxHeight = Math.Max(MinDialogContentHeightDip, maxHeight);
}
catch (Exception E)
{