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
When content: "flex" is used in an auto-sized label, the sizes of child elements using the flex(grow_factor) function start measuring their size incorrectly.
Code for reproduction:
use freya::prelude::*;fnmain(){launch(App);}#[component]fnApp() -> Element{rsx!{
rect {
width:"256",
height:"48",
padding:"12 5 12 5",
background:"#999999",
rect {
direction:"horizontal",
spacing:"8",
cross_align:"center",
content:"flex",
rect {
width:"flex",
main_align:"center",
label {"Click Me!"}}
rect {
width:"12",
height:"12",
background:"red",}}}}}
The text was updated successfully, but these errors were encountered:
marc2332
changed the title
Auto-sized flex
Issue: label with auto width in a flex container get 0 width
Feb 7, 2025
When
content: "flex"
is used in an auto-sizedlabel
, the sizes of child elements using theflex(grow_factor)
function start measuring their size incorrectly.Code for reproduction:
The text was updated successfully, but these errors were encountered: