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

VirtualFlow returns incorrect height of first cell when in need of layout pass #4

Closed
oddbjornkvalsund opened this issue Sep 17, 2015 · 1 comment

Comments

@oddbjornkvalsund
Copy link

I've been experimenting with Flowless in the context of a log-viewer and so far it has suited my needs perfectly, thanks!

I do however have one use-case that I'm struggling to implement. I want the VirtualFlow to vertically resize dynamically to the size of its content up to the point where it's limited by it's parents size. See this gist: https://gist.github.com/oddbjornkvalsund/f232c0f61fdc368d704f

It almost works, but for the rendering of the first cell it seems to get the calculated height wrong when the VirtualFlow is need of a layout pass. See line 90 of the gist.

@oddbjornkvalsund
Copy link
Author

This turned out to be PEBKAC on my part. Binding the VirtualFlows "visible" and "managed" properties to the list-not-empty property was a mistake. By instead setting the VirtualFlows minHeight, prefHeight and maxHeight initially to 0 it all works as expected.

# 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