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

Documentation addition #3

Open
GoldenJoe opened this issue Jul 9, 2019 · 0 comments
Open

Documentation addition #3

GoldenJoe opened this issue Jul 9, 2019 · 0 comments

Comments

@GoldenJoe
Copy link

GoldenJoe commented Jul 9, 2019

I'm putting together a bar chart, with a layout in which a scrollview has an accompanying axis view on its left and bottom. I'm a fan of the visual layout style, so I was a bit confused when this code resulted in a scrollview with 0 height:

sv(
   view_axisX,
   view_axisY,
   view_scroll.sv(
      view_content
   )
)
        
layout(
   0,
   |-view_axisY.width(20)-view_scroll-|, // It would be helpful to know that only view_axisY gets anchored to the top here.
   0,
   |-view_axisX.height(20)-|,
   0
)
view_content.followEdges(view_scroll)

It is because only the first view in the "row" gets anchored to the top of the parent view (in this case view_axisY). Figure it might be helpful to others to mention that in the Vertical documentation.

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

No branches or pull requests

1 participant