Skip to content

Commit

Permalink
Fix broken border radius (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico authored Jul 13, 2023
1 parent 80373fb commit 53f74d2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,10 @@ class SlideToActView @JvmOverloads constructor(
override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) {
mAreaWidth = w
mAreaHeight = h
mBorderRadius = h / 2
if (mBorderRadius == -1) {
// Round if not set up
mBorderRadius = h / 2
}

// Text horizontal/vertical positioning (both centered)
mTextXPosition = mAreaWidth.toFloat() / 2
Expand Down

0 comments on commit 53f74d2

Please sign in to comment.