mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-08 07:58:51 +01:00
remove the minY check at adding event at weekly view
This commit is contained in:
parent
ee00f72ab3
commit
b2be9add1e
@ -29,7 +29,6 @@ import kotlinx.android.synthetic.main.fragment_week.view.*
|
|||||||
import org.joda.time.DateTime
|
import org.joda.time.DateTime
|
||||||
import org.joda.time.Days
|
import org.joda.time.Days
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import kotlin.comparisons.compareBy
|
|
||||||
|
|
||||||
class WeekFragment : Fragment(), WeeklyCalendar {
|
class WeekFragment : Fragment(), WeeklyCalendar {
|
||||||
val CLICK_DURATION_THRESHOLD = 150
|
val CLICK_DURATION_THRESHOLD = 150
|
||||||
@ -249,7 +248,7 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||||||
text = event.title
|
text = event.title
|
||||||
activity.runOnUiThread {
|
activity.runOnUiThread {
|
||||||
layout.addView(this)
|
layout.addView(this)
|
||||||
y = Math.max(startMinutes * minuteHeight, minScrollY.toFloat())
|
y = startMinutes * minuteHeight
|
||||||
(layoutParams as RelativeLayout.LayoutParams).apply {
|
(layoutParams as RelativeLayout.LayoutParams).apply {
|
||||||
width = layout.width - 1
|
width = layout.width - 1
|
||||||
minHeight = if (event.startTS == event.endTS) minimalHeight else (duration * minuteHeight).toInt() - 1
|
minHeight = if (event.startTS == event.endTS) minimalHeight else (duration * minuteHeight).toInt() - 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user