Skip to content
New issue

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

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

Already on GitHub? # to your account

MxScrollView causes infinite reallocation loop #58

Open
gtristan opened this issue Jul 5, 2012 · 0 comments
Open

MxScrollView causes infinite reallocation loop #58

gtristan opened this issue Jul 5, 2012 · 0 comments

Comments

@gtristan
Copy link
Contributor

gtristan commented Jul 5, 2012

This is a separate issue as the one reported in #57

The problem here is regardless of height-for-width scenarios, the MxScrollView needs to detect
feedback cycles generated when allocating a child that almost fits the scroll view allocation.

Usually this recursion is caused by some latent process involving scrollbar display, but
might not be the case here:
o scroll view allocates size
o Child receives allocation and updates adjustments
o scroll view parent decides to show/hide the scrollbars
o showing/hiding the scrollbars causes yet another relayout to be queued...

This cycle above is only a double loop in most cases where the unsuspecting scroll view
allocates a size that is well below or above the child requested size (in which case a single
scroll bar is visible after 2 allocation cycles).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant