Replies: 1 comment
-
As a workaround, I can wrap the buttons in a parent flex container, with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My goal is to layout buttons with a minimum size but otherwise sizes itself to its content, like in this example: https://jsfiddle.net/3uvL724r/
I was trying to reproduce something similar to this with taffy, using a text element with a custom measuring function, and a box laid-out with taffy, with a
Flex
orBlock
layout. However the box always stretches to fill the available width. In CSS I usedwidth: max-content
ordisplay: inline-block
to prevent filling all the space, but I don't see a way to specify that in taffy (forStyle.size
I can only specify a length, a percentage, orauto
, which seems to fill the space). What would be the best way to reproduce the CSS example in taffy?Beta Was this translation helpful? Give feedback.
All reactions