Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contentpage is cut off in iOS #8778

Closed
inigofu opened this issue Jul 15, 2022 · 8 comments
Closed

Contentpage is cut off in iOS #8778

inigofu opened this issue Jul 15, 2022 · 8 comments
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint platform/iOS 🍎 s/needs-info Issue needs more info from the author s/no-recent-activity Issue has had no recent activity t/bug Something isn't working

Comments

@inigofu
Copy link

inigofu commented Jul 15, 2022

Description

When using top tab in Maui, content page is cut off in Ios.

In Android:
image

In Ios:

image

Steps to Reproduce

The shell file configuration is:

<TabBar>
   <Tab Title="MainPage" >
        <Tab.Icon>
            
        <FontImageSource Glyph="{x:Static fonts:IconFont.Home}" Color="Black"
                     FontFamily="materialicons"
                     />

        </Tab.Icon>
       
       <ShellContent Title="Cats"
                     ContentTemplate="{DataTemplate local:MainPage}" />
       
   </Tab>
        
        
   <Tab Title="Workouts">
        <Tab.Icon>
            
        <FontImageSource Glyph="{x:Static fonts:IconFont.Directions_bike}" Color="Black"
                     FontFamily="materialicons"
                     />

        </Tab.Icon>
       <ShellContent Title="Favorites" ContentTemplate="{DataTemplate local:MainPage}"/>
        <ShellContent Title="All Workouts"
                     ContentTemplate="{DataTemplate views:Workouts_All}" />
        <ShellContent Title="Free Ride"
                     ContentTemplate="{DataTemplate views:Workouts_FreeRIde}" />
   </Tab>
     <Tab Title="Plans" >
        <Tab.Icon>
            
        <FontImageSource Glyph="{x:Static fonts:IconFont.Calendar_month}" Color="Black"
                     FontFamily="materialicons"
                     />

        </Tab.Icon>
        <ShellContent Title="Cats"
                     ContentTemplate="{DataTemplate local:MainPage}" />
        </Tab>
    <Tab Title="Progress" >
        <Tab.Icon>
            
        <FontImageSource Glyph="{x:Static fonts:IconFont.Signal_cellular_alt}" Color="Black"
                     FontFamily="materialicons"
                     />

        </Tab.Icon>
        <ShellContent Title="Cats"
                     ContentTemplate="{DataTemplate local:MainPage}" />
        </Tab>

</TabBar>

Version with bug

6.0.408 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 15

Did you find any workaround?

No response

Relevant log output

No response

@inigofu inigofu added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jul 15, 2022
@rmarinho rmarinho added platform/iOS 🍎 p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint area-controls-shell Shell Navigation, Routes, Tabs, Flyout and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Jul 20, 2022
@samhouts samhouts added this to the .NET 8 Planning milestone Jan 26, 2023
@StepKie
Copy link

StepKie commented Feb 7, 2023

Would be nice if that would be fixed since that is quite the obvious bug...

@edgiardina
Copy link

Seeing this as well on iOS.

@MSicc
Copy link

MSicc commented May 7, 2023

Same here, but on latest .NET 7 workload.

@StepKie
Copy link

StepKie commented May 8, 2023

Pretty incredible that this is still the case a year after MAUI release.

Just sharing our quick workaround, adding a global implicit style:

<Style ApplyToDerivedTypes="True" TargetType="ContentPage">
    <!--  iOS gets additional top padding due to https://github.com/dotnet/maui/issues/8778 -->
    <Setter Property="Padding" Value="{OnPlatform iOS='10,50,10,0', Default='10,10,10,0'}" />
</Style>

@headintheclouds21
Copy link

headintheclouds21 commented May 23, 2023

I'm experiencing this on maccatalyst with .NET 7. I just upgraded and now my project UI is broken. Has anyone found a good workaround for this? Please fix this NET MAUI team

I've also had issues with the content page growing/stretching when UI changes are made. None of these issues were around before I updated. Any advice would be appreciated.

@pjcollins
Copy link
Member

I was able to repro this issue with a .NET 7 project on an iOS 16 simulator. However, I am no longer seeing this when updating my project to target net8.0-ios using the latest .NET 8 Preview 7 builds. Would you be able to try the latest preview version to see if that improves this behavior for you?

@pjcollins pjcollins added the s/needs-info Issue needs more info from the author label Aug 14, 2023
@ghost
Copy link

ghost commented Aug 14, 2023

Hi @inigofu. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@ghost ghost added the s/no-recent-activity Issue has had no recent activity label Aug 18, 2023
@ghost
Copy link

ghost commented Aug 18, 2023

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@ghost ghost closed this as completed Aug 21, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Sep 20, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint platform/iOS 🍎 s/needs-info Issue needs more info from the author s/no-recent-activity Issue has had no recent activity t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants