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
Uh oh!
There was an error while loading. Please reload this page.
-
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
FlexorBlocklayout. However the box always stretches to fill the available width. In CSS I usedwidth: max-contentordisplay: inline-blockto prevent filling all the space, but I don't see a way to specify that in taffy (forStyle.sizeI 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