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

Elements in same layout doesn't response IsVisible changes [iOS][Mac] #7482

Closed
enisn opened this issue May 25, 2022 · 9 comments
Closed

Elements in same layout doesn't response IsVisible changes [iOS][Mac] #7482

enisn opened this issue May 25, 2022 · 9 comments
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@enisn
Copy link

enisn commented May 25, 2022

Description

When an element's IsVisible property is changed, other elements' position doesn't change, they stay in the same position.

Let me explain with following gifs. When I try the same scenario in Windows or Android, everything works great. But it doesn't work as expected on iOS and MacOS.

✅ Works fine:

Windows Android
windows-demo android-demo

❌ Doesn't work as expected:

iOS MacOS
ios-demo macos-demo

Steps to Reproduce

  1. Create a new project.
  2. Add 2 elements in the same stacklayout and set a name for the first one.
  3. Add a button to the page and set the first element's IsVisible as false.
  4. You'll see, the second element won't go up and stay at the same position.

You can try the opposite, initialize the first element with IsVisible as false and set IsVisible as true via button. You'll see the second element will be rendered on the first element.


Also, I have a repository for my complex situation, you can clone and run SandboxTreeView project to reproduce the issue.

https://github.com/enisn/TreeView.Maui

Version with bug

6.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

iOS 15.4

Did you find any workaround?

Unfortunetely.

Relevant log output

No response

@enisn enisn added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels May 25, 2022
@kristinx0211 kristinx0211 added 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 26, 2022
@kristinx0211
Copy link

kristinx0211 commented May 26, 2022

verified repro on ios15.4 with the above project.

@enisn
Copy link
Author

enisn commented May 26, 2022

The same problem can be shown there too: #3410 (comment)
Android elements go up when IsVisible is set false, but ios elements stay

@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label May 26, 2022
@AidarNurmukhametov
Copy link

Hello, we are developing DevExpress .NET MAUI controls and experienced the same issue. It has a High priority for us and we do not have a workaround. Thank you for your help

@AntonKosenkoDX
Copy link

@kristinx0211 Hello! Any update on this issue?

@hartez hartez self-assigned this Jun 28, 2022
@hartez hartez added this to the 6.0-servicing milestone Jun 28, 2022
@enisn
Copy link
Author

enisn commented Jul 27, 2022

@AidarNurmukhametov did you find a workaround?

@AidarNurmukhametov
Copy link

@AidarNurmukhametov did you find a workaround?

@enisn No, I don't. Temporary solution was to use another layout, I don't consider that a workaround, result is not the same

@hartez
Copy link
Contributor

hartez commented Jul 27, 2022

@AidarNurmukhametov Have you tried updating VS to the latest preview? This may have been fixed in service release 2.

@hartez hartez removed their assignment Aug 2, 2022
@Redth Redth modified the milestones: 6.0-servicing, Backlog Aug 30, 2022
@ghost
Copy link

ghost commented Aug 30, 2022

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@enisn
Copy link
Author

enisn commented Aug 30, 2022

I've tested it on version 6.0.486 and couldn't reproduce it. I think this is solved.

@enisn enisn closed this as completed Sep 6, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Oct 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants