maximized close case dialog
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user