fixed child removal
fixed relayout on draw refactored child remove/replace into ScrollPanelWidget fixed scrolling on child remove
This commit is contained in:
@@ -21,11 +21,10 @@ namespace OpenRA.Widgets
|
||||
if (widget.Children.Count == 0)
|
||||
widget.ContentHeight = widget.ItemSpacing;
|
||||
|
||||
w.Bounds.Y += widget.ContentHeight;
|
||||
w.Bounds.Y = widget.ContentHeight;
|
||||
widget.ContentHeight += w.Bounds.Height + widget.ItemSpacing;
|
||||
}
|
||||
|
||||
|
||||
public void AdjustChildren()
|
||||
{
|
||||
widget.ContentHeight = widget.ItemSpacing;
|
||||
|
||||
Reference in New Issue
Block a user