Skip to content

Commit

Permalink
Update src/main/kotlin/me/partlysanestudios/partlysaneskies/render/gu…
Browse files Browse the repository at this point in the history
…i/constraints/TextScaledPixelConstraint.kt

Co-authored-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com>
Signed-off-by: Su386 <83100266+Su386yt@users.noreply.github.com>
  • Loading branch information
Su386yt and j10a1n15 authored Jul 27, 2024
1 parent 35edc77 commit 771c7b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ class TextScaledPixelConstraint(
override fun getYPositionImpl(component: UIComponent): Float =
(value * ElementaUtils.scaleFactor * ElementaUtils.textScale).pixels(alignOpposite, alignOutside).getYPositionImpl(component)

override fun visitImpl(visitor: ConstraintVisitor, type: ConstraintType,) =
override fun visitImpl(visitor: ConstraintVisitor, type: ConstraintType) =
(value * ElementaUtils.scaleFactor * ElementaUtils.textScale).pixels(alignOpposite, alignOutside).visitImpl(visitor, type)
}

0 comments on commit 771c7b6

Please sign in to comment.