You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
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.
The text was updated successfully, but these errors were encountered: