mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-06-09 10:06:34 +02:00
Invalidate the measure of BoxContainer's SeparationOverride (#6572)
InvalidateMeasure of SeparationOverride in BoxContainer It currently doesn't trigger a new measure/arrange, but it should.
This commit is contained in:
@@ -40,7 +40,15 @@ namespace Robust.Client.UserInterface.Controls
|
||||
private int ActualSeparation =>
|
||||
SeparationOverride ?? StylePropertyDefault(StylePropertySeparation, DefaultSeparation);
|
||||
|
||||
public int? SeparationOverride { get; set; }
|
||||
public int? SeparationOverride
|
||||
{
|
||||
get;
|
||||
set
|
||||
{
|
||||
field = value;
|
||||
InvalidateMeasure();
|
||||
}
|
||||
}
|
||||
|
||||
protected override Vector2 MeasureOverride(Vector2 availableSize)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user