Skip to content

Commit

Permalink
Fixed spacer size not being scaled
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Oct 3, 2024
1 parent bf2ab4d commit e2aba22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arc-core/src/arc/scene/ui/layout/Spacer.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ public void act(float delta){

@Override
public float getPrefHeight(){
return heightFunc.get();
return Scl.scl(heightFunc.get());
}

@Override
public float getPrefWidth(){
return widthFunc.get();
return Scl.scl(widthFunc.get());
}
}

0 comments on commit e2aba22

Please sign in to comment.