[Winforms] Calculate GroupBox preferred size the same way as Panel (#18429)
commit8bd438f318b6bafdd610ca94760c7f70097b6a31
authorKarl <5079870+PreferLinux@users.noreply.github.com>
Mon, 13 Jan 2020 16:15:09 +0000 (14 05:15 +1300)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 13 Jan 2020 16:15:09 +0000 (13 17:15 +0100)
tree0448a458417c66698e52935deefe854707f6ef99
parent4ee4d368c649e024b516cb26245d9bdd14baa1df
[Winforms] Calculate GroupBox preferred size the same way as Panel (#18429)

GroupBox's GetPreferredSize() is not great. I've simply copied the code from Panel, and used that. It uses LayoutEngine.GetPreferredSize(), which does things a lot better than the code this used.
mcs/class/System.Windows.Forms/System.Windows.Forms/GroupBox.cs