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

Scroll view content not rendered properly while dynamically adding the layout on view (iOS and Mac). #18750

Closed
MohanrajSF3559 opened this issue Nov 15, 2023 · 4 comments
Labels
area-controls-scrollview ScrollView platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working

Comments

@MohanrajSF3559
Copy link

MohanrajSF3559 commented Nov 15, 2023

Description

Scrollview:

  • I had set a width is 300 height is 400 for the custom view.

  • While dynamically add the stack layout on view then got a custom view width and height is full screen width and height.

  • So that content of the picker scroll view rendered based on the parent width(Example: Full screen width = 1000, Height = 700).

  • So that the scrolling did not work properly in Mac and iOS platforms.

Steps to Reproduce

  1. Run the sample.
  2. Check the width and height of the custom view and PickerScrollView.
    3.Check the PickerContentView width and height.
    4.Click the button to add the stack layout on the view.
    5.Check the width and height of the PickerContentView(We got the full screen size instead of custom view width and height).

Link to public reproduction project repository

https://github.com/dotnet/maui/files/13364011/MacPickerCusIssue.zip

Version with bug

8.0.0-rc.1.9171

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

iOS 16.2, Mac OS 12.6.3

Did you find any workaround?

No

Relevant log output

No response

@MohanrajSF3559 MohanrajSF3559 added the t/bug Something isn't working label Nov 15, 2023
@MohanrajSF3559 MohanrajSF3559 changed the title Scroll view content not rendered properly while dynamically adding the layout on view in iOS and Mac platfoms. Scroll view content not rendered properly while dynamically adding the layout on view (iOS and Mac). Nov 15, 2023
@e1T
Copy link

e1T commented Nov 15, 2023

Could this be similar to this issue #18207 ?

@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Nov 15, 2023
@MohanrajSF3559
Copy link
Author

Hi @e1T ,
It slightly different.

I had set a parent width is 500. The child (here child is scroll view) width is 200.
The scroll view renderd based on its width(200) properly.
Now content of main page is above.

Dynamically add the stacklayout for the main page. Now the scroll view rendered based on the the parent width(500) instead of scroll view width (200).

@PureWeen
Copy link
Member

Duplicate of #18207

@PureWeen PureWeen marked this as a duplicate of #18207 Dec 19, 2023
@MohanrajSF3559
Copy link
Author

Reopen

@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2024
@Eilon Eilon added area-controls-scrollview ScrollView and removed area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter labels May 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-scrollview ScrollView platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants