mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 06:28:35 +01:00
disallow removing the scroll bar from a panel
This commit is contained in:
parent
a75d04cffc
commit
9146d7f2ba
1 changed files with 4 additions and 1 deletions
|
@ -108,9 +108,12 @@ namespace MLEM.Ui.Elements {
|
|||
/// <inheritdoc />
|
||||
public override void ForceUpdateSortedChildren() {
|
||||
base.ForceUpdateSortedChildren();
|
||||
if (this.scrollOverflow)
|
||||
if (this.scrollOverflow) {
|
||||
if (this.ScrollBar.Parent != this)
|
||||
throw new NotSupportedException("A panel that scrolls overflow cannot have its scroll bar removed from its list of children");
|
||||
this.relevantChildrenDirty = true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override List<Element> GetRelevantChildren() {
|
||||
|
|
Loading…
Reference in a new issue