only use prefered size if not empty

This commit is contained in:
Pilzinsel64
2025-04-09 19:34:55 +02:00
parent 4b5b90bd68
commit 93fc5e860c

View File

@@ -235,7 +235,7 @@ public partial class RadFlyoutBase : UserControl
if (FindForm() is not Form frm)
return;
if (!AutoSize)
if (!AutoSize && !PreferredSize.IsEmpty)
frm.ClientSize = PreferredSize;
}