framework
framework copied to clipboard
[UIManager] adding too much controls in one go results in a crash
https://github.com/exomia/framework/blob/68f0e503c64438353e37ad0d1e812d2994b18354/src/Exomia.Framework/UI/UiManager.cs#L161 if the "_controlCount" exceeds the "_currentlyControls.Length * 2" amount the system will crash. to prevent we should resize the array based on the maximum of "_currentlyControls.Length * 2" and "_controlCount".