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

Stack items from bottom #2

Closed
raniejade opened this issue Feb 26, 2015 · 5 comments
Closed

Stack items from bottom #2

raniejade opened this issue Feb 26, 2015 · 5 comments

Comments

@raniejade
Copy link

If I'm not mistaken items laid out starting from top, it would be great if we can change to behavior to start stacking from the bottom this is useful for creating a widget for displaying chat messages.

@TomasMikula
Copy link
Member

Yes, items are laid out starting from top (or left for horizontal flow). There is no reason why this should not be configurable. Although it makes a difference only when the viewport is not full, in your case, only when the chat starts. Once the viewport is filled, there would be no difference.

@raniejade
Copy link
Author

True, was planning to play around with it but I still have a long way to understand the source.

@TomasMikula
Copy link
Member

You can now additionally specify "gravity" when creating the VirtualFlow. FRONT is the default and means top for vertical flow and left for horizontal flow. You can specify REAR to get bottom for vertical flow and right for horizontal flow. You can have a look at the commit to see what it took to implement it. Basically a bunch of helper methods whose behavior depends on gravity, and then use these new gravity aware methods in Navigator#fillViewportFrom().

@raniejade
Copy link
Author

👍 Is this included in 0.4.3?

@TomasMikula
Copy link
Member

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

No branches or pull requests

2 participants