mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
SpriteView updates its size whenever the entity is set (#6362)
* SpriteView updates its size whenever the entity is set * SpriteView recalculates its measure when the entity changes
This commit is contained in:
@@ -170,6 +170,7 @@ namespace Robust.Client.UserInterface.Controls
|
||||
|
||||
Entity = new(uid.Value, sprite, xform);
|
||||
NetEnt = EntMan.GetNetEntity(uid);
|
||||
InvalidateMeasure();
|
||||
}
|
||||
|
||||
protected override Vector2 MeasureOverride(Vector2 availableSize)
|
||||
|
||||
Reference in New Issue
Block a user