Skip to content

Fixes endless loop of HorizontalScroll - #22628

Closed
BaY1251 wants to merge 1 commit into
dotnet:mainfrom
BaY1251:Fixes-endless-loop-of-HorizontalScroll
Closed

BaY1251 wants to merge 1 commit into
dotnet:mainfrom
BaY1251:Fixes-endless-loop-of-HorizontalScroll

Conversation

@BaY1251

@BaY1251 BaY1251 commented May 24, 2024

Copy link
Copy Markdown
Contributor

Description of Change

I know PR #22347 has fixed #20684. But,I am still searching for the root cause of the problem.
I printed the log and saw that the height was constantly being changed to completely different values.
I think MauiScrollView.OnLayout is where the modifications should be made.

Change \src\Core\src\Platform\Android\MauiScrollView.cs

Log:
#22566 (comment)

Issues Fixed

Fixes #20684

@BaY1251
BaY1251 requested a review from a team as a code owner May 24, 2024 03:27
@BaY1251
BaY1251 requested review from Eilon and jfversluis May 24, 2024 03:28
@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label May 24, 2024
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey there @BaY1251! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@jsuarezruiz

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

base.OnLayout(changed, left, top, right, bottom);

if (_hScrollView?.Parent == this && _content is not null)
if (changed && _hScrollView?.Parent == this && _content is not null)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue still happens after merge #22347?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR22347 has fixed this issue and performed very well.
This PR attempts to solve the problem from another perspective, that is, the _hScrollView should not be adjusted when 'changed' is' false '.

@BaY1251

BaY1251 commented Aug 23, 2024

Copy link
Copy Markdown
Contributor Author

Fixed by PR #22347

@BaY1251 BaY1251 closed this Aug 23, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android][MAUI-8.0.7] CPU usage consistently remains above 10%, even without any operation

2 participants