mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-03-18 04:10:15 +01:00
fixing some weekly view calculations
This commit is contained in:
parent
2d5b174df9
commit
3bcd394ad0
@ -466,8 +466,8 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
||||
}
|
||||
|
||||
var endMinutes = startMinutes + duration
|
||||
if (endMinutes - startMinutes < minimalHeight) {
|
||||
endMinutes += Math.round(minimalHeight / minuteHeight)
|
||||
if ((endMinutes - startMinutes) * minuteHeight < minimalHeight) {
|
||||
endMinutes = startMinutes + (minimalHeight / minuteHeight).toInt()
|
||||
}
|
||||
|
||||
val range = Range(startMinutes, endMinutes)
|
||||
|
@ -26,6 +26,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:includeFontPadding="false"
|
||||
android:maxLines="3"
|
||||
android:paddingStart="@dimen/tiny_margin"
|
||||
android:textColor="@android:color/white"
|
||||
|
Loading…
x
Reference in New Issue
Block a user