Demo: LayoutStrategy with horizontal/vertical placement of children and support for percentage-based width/height #10127
Unanswered
drinkspiller
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Friendly bump requesting guidance as to whether this should be done in |
Beta Was this translation helpful? Give feedback.
1 reply
-
@drinkspiller Interested in this too- would love to see the demo |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I put together a demo of "inline" LayoutStrategy where the children of a group are positioned either horizontally (row) or vertically (column). The demo also supports supplying percentage-based width and height for Group and Shapes.
DEMO
I've read the LayoutManager README but am still not quite clear on when it is appropriate to implement layout logic in
LayoutStrategy
'scalcLayoutResult
method vsLayoutManager
'sperformLayout
method. I'd be grateful for a look at theLayoutStrategy
implemented in the demo and suggestions for patterns that might be more idiomatic to Fabric. Thanks!Beta Was this translation helpful? Give feedback.
All reactions