diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/WeekFragment.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/WeekFragment.kt index 61d93af35..c9c5e4994 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/WeekFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/fragments/WeekFragment.kt @@ -79,7 +79,12 @@ class WeekFragment : Fragment(), WeeklyCalendar { override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { this.inflater = inflater - mView = inflater.inflate(R.layout.fragment_week, container, false) + mView = inflater.inflate(R.layout.fragment_week, container, false).apply { + val fullHeight = context.config.weeklyViewItemHeight.toInt() * 24 + week_horizontal_grid_holder.layoutParams.height = fullHeight + week_events_columns_holder.layoutParams.height = fullHeight + } + scrollView = mView.week_events_scrollview scrollView.setOnScrollviewListener(object : MyScrollView.ScrollViewListener { override fun onScrollChanged(scrollView: MyScrollView, x: Int, y: Int, oldx: Int, oldy: Int) { diff --git a/app/src/main/res/layout/fragment_week.xml b/app/src/main/res/layout/fragment_week.xml index cefdadafa..f352f0495 100644 --- a/app/src/main/res/layout/fragment_week.xml +++ b/app/src/main/res/layout/fragment_week.xml @@ -22,12 +22,12 @@ + android:layout_height="wrap_content"/> diff --git a/app/src/main/res/values-sw600dp/dimens.xml b/app/src/main/res/values-sw600dp/dimens.xml index eb84835a6..bfaaddb56 100644 --- a/app/src/main/res/values-sw600dp/dimens.xml +++ b/app/src/main/res/values-sw600dp/dimens.xml @@ -6,8 +6,6 @@ 60dp 90dp - 89dp - 2160dp 15dp 20sp diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index 2c2d17fa5..352f020c5 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -7,7 +7,6 @@ 40dp 60dp - 1440dp 10dp 10dp