Skip to content

Commit

Permalink
ScrollComponent: Change DefaultScrollBar to be a UIContainer
Browse files Browse the repository at this point in the history
This makes sure that the `beforeDraw` method is called.

GitHub: #119
  • Loading branch information
Sychic authored Oct 9, 2023
1 parent 7fa686f commit 9823d25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ class ScrollComponent @JvmOverloads constructor(
private fun ClosedFloatingPointRange<Double>.width() = abs(this.start - this.endInclusive)
private fun ClosedFloatingPointRange<Float>.width() = abs(this.start - this.endInclusive)

class DefaultScrollBar(isHorizontal: Boolean) : UIComponent() {
class DefaultScrollBar(isHorizontal: Boolean) : UIContainer() {
val grip: UIComponent

init {
Expand Down

0 comments on commit 9823d25

Please sign in to comment.