mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
fix a glitch at month view screen with updating day height
This commit is contained in:
@@ -58,8 +58,13 @@ class MonthViewWrapper(context: Context, attrs: AttributeSet, defStyle: Int) : F
|
|||||||
|
|
||||||
private fun measureSizes() {
|
private fun measureSizes() {
|
||||||
dayWidth = (width - horizontalOffset) / 7f
|
dayWidth = (width - horizontalOffset) / 7f
|
||||||
|
|
||||||
|
// avoid updating the height when coming back from a new event screen, when the keyboard was visible
|
||||||
|
val newHeight = (height - weekDaysLetterHeight) / 6f
|
||||||
|
if (newHeight > dayHeight) {
|
||||||
dayHeight = (height - weekDaysLetterHeight) / 6f
|
dayHeight = (height - weekDaysLetterHeight) / 6f
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun addViews() {
|
private fun addViews() {
|
||||||
removeAllViews()
|
removeAllViews()
|
||||||
|
Reference in New Issue
Block a user