Fix month view layout

This commit is contained in:
Naveen 2023-09-04 16:03:56 +05:30
parent 801b4ae9e9
commit f791195b2f
No known key found for this signature in database
GPG Key ID: 0E155DAD31671DA3
1 changed files with 3 additions and 2 deletions

View File

@ -130,7 +130,7 @@ class MonthViewWrapper(context: Context, attrs: AttributeSet, defStyle: Int) : F
val xPos = viewX * dayWidth + horizontalOffset
val yPos = viewY * dayHeight + weekDaysLetterHeight
MonthViewBackgroundBinding.inflate(inflater, this, false).apply {
MonthViewBackgroundBinding.inflate(inflater, this, false).root.apply {
if (isMonthDayView) {
background = null
}
@ -146,7 +146,8 @@ class MonthViewWrapper(context: Context, attrs: AttributeSet, defStyle: Int) : F
binding.monthView.updateCurrentlySelectedDay(viewX, viewY)
}
}
addView(root)
addView(this)
}
}