mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 06:28:35 +01:00
also apply auto-sizing if the element has no children at all
This commit is contained in:
parent
2abc3264a2
commit
f60c3b288a
1 changed files with 1 additions and 1 deletions
|
@ -623,7 +623,7 @@ namespace MLEM.Ui.Elements {
|
|||
foreach (var child in this.Children)
|
||||
child.ForceUpdateArea();
|
||||
|
||||
if (this.Children.Count > 0) {
|
||||
if (this.SetWidthBasedOnChildren || this.SetHeightBasedOnChildren) {
|
||||
Element foundChild = null;
|
||||
var autoSize = this.UnscrolledArea.Size;
|
||||
if (this.SetHeightBasedOnChildren) {
|
||||
|
|
Loading…
Reference in a new issue