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

[iOS] - Frame not resizing. #7217

Closed
bhuvan94 opened this issue May 16, 2022 · 3 comments · Fixed by #7297
Closed

[iOS] - Frame not resizing. #7217

bhuvan94 opened this issue May 16, 2022 · 3 comments · Fixed by #7297
Labels
area-controls-frame Frame area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter fixed-in-6.0.400 Look for this fix in 6.0.400! platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@bhuvan94
Copy link

bhuvan94 commented May 16, 2022

Description

Frame not resize while changing IsVisible Property Dynamically.

Steps to Reproduce

  1. Create Maui Sample.
  2. Add below code.
 <StackLayout>
    <Frame Margin="10" BackgroundColor="Red">
        <Grid RowDefinitions="Auto,Auto" VerticalOptions="Center">
            <Frame Grid.Row="0">
                <Grid ColumnDefinitions="*,Auto">
                    <Label Grid.Column="0" Text="Header" />
                    <Label
                        x:Name="label"
                        Grid.Column="1"
                        HorizontalOptions="End"
                        Text="Hide">
                        <Label.GestureRecognizers>
                            <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped" />
                        </Label.GestureRecognizers>
                    </Label>
                </Grid>
            </Frame>
            <Frame x:Name="frame" Grid.Row="1">
                <Label Text="Detail" />
            </Frame>
        </Grid>
    </Frame>
</StackLayout>
  1. Run the app.

Sample : SimpleSample.zip

Android recorded video

Android.mp4

iOS recorded video

iOS.mov

Version with bug

Release Candidate 2

Last version that worked well

Release Candidate 2

Affected platforms

iOS

Affected platform versions

iOS 15

Did you find any workaround?

None

Relevant log output

No response

@bhuvan94 bhuvan94 added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels May 16, 2022
@jsuarezruiz jsuarezruiz added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label May 16, 2022
@v-longmin v-longmin added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels May 16, 2022
@v-longmin
Copy link

Verified repro on iOS 15.4 with VS 17.3.0 Preview 1.0 [32427.505.main]. repro with above project.

@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 16, 2022
@hartez
Copy link
Contributor

hartez commented May 16, 2022

Probably the same problem as #6420

@bhuvan94 bhuvan94 changed the title iOS - Frame not resizing. [iOS] - Frame not resizing. May 17, 2022
hartez added a commit that referenced this issue May 18, 2022
Remove unnecessary SetNeedsLayout call when switching visibility
Fixes #6420; Fixes #7217
rmarinho pushed a commit that referenced this issue May 18, 2022
Remove unnecessary SetNeedsLayout call when switching visibility
Fixes #6420; Fixes #7217
@ViktorArbuzov
Copy link

tested on 6.0.312, the issue still can be reproduced

@ghost ghost locked as resolved and limited conversation to collaborators Jun 25, 2022
@samhouts samhouts added the fixed-in-6.0.400 Look for this fix in 6.0.400! label Feb 17, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-frame Frame area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter fixed-in-6.0.400 Look for this fix in 6.0.400! platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants