SparkDevNetwork / Rock.Mobile-Issues

3 stars 2 forks source link

[Issue]: Calendar View display issues. #34

Closed trydyingtolive closed 2 months ago

trydyingtolive commented 2 months ago

Describe the Issue in Detail

The Calendar View block seems to have some display issues. I noticed this when calendars suddenly stopped displaying correctly. I was able to reproduce this on a fresh app.

The month on the calendar by default is too short so it doesn't display the text. The next and previous months also do not appear.

This is what the documentation shows image

This is what is looks like on Android (iOS is similar) Screenshot_20240819-144353

Additionally when selecting a calendar date, the event details do not appear.

Can reproduce in

Steps to Reproduce

Add a Calendar View block to a page.

Expected Behavior

Visible month, next and previous months, and details when a date is selected.

Actual Behavior

The month is not visible and when selecting a day the events for the month do not appear.

Screenshots or Videos

Screenshot_20240819-144353

Reproduction XAML

No response

Mobile Shell Version

6.0.0.0

Last Known Working Version

v5

iOS Device Type(s) and iOS Version(s)

iPhone 14

Android Device Type(s) and Android Version(s)

Pixel 6, Pixel 8

bradencohen commented 2 months ago

Fixed in shell V6. This fix should be testable in iOS App Store Version 1.0.81 in the blue app.

trydyingtolive commented 5 days ago

It appears that the calendar block continues to have issues. The top most image is Android. A date with and event is selected, but it is not visible below the calendar. The second image is iOS. Both of the screenshots are from the Blue app iOS 1.0.81 and Android 1.0.80

Screenshot_20241104-143450 IMG_0015 1

bradencohen commented 5 days ago

@trydyingtolive would you mind sharing your layout? Is there a ScrollView, and if so, could you try removing it?

trydyingtolive commented 4 days ago

I'm just using the default homepage layout

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:Rock="clr-namespace:Rock.Mobile.Cms;assembly=Rock.Mobile"
             xmlns:Common="clr-namespace:Rock.Mobile.Common;assembly=Rock.Mobile.Common">
    <ScrollView>
        <StackLayout>
            <Rock:Zone ZoneName="Main" />
        </StackLayout>
    </ScrollView>
</ContentPage>
bradencohen commented 4 days ago

@trydyingtolive it does look like there's a ScrollView in that layout. The Calendar View (event list) uses a component with built in scrolling mechanics, meaning it can't have an outer ScrollView.

We've documented this for some of the newer blocks with this behavior, but I'll double check the Calendar View documentation and make sure it has this mentioned.

trydyingtolive commented 1 day ago

I removed the scroll view in the layout and redeployed the app. Here is the layout I used.

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:Rock="clr-namespace:Rock.Mobile.Cms;assembly=Rock.Mobile"
             xmlns:Common="clr-namespace:Rock.Mobile.Common;assembly=Rock.Mobile.Common">

        <StackLayout>
            <Rock:Zone ZoneName="Main" />
        </StackLayout>

</ContentPage>

Here is the page Screenshot 2024-11-07 at 16-35-12 Pages Rock RMS

Here are the settings image

Here are the results on iOS: IMG_0016 1