fix non string layout attributes in rink

This commit is contained in:
Evan Almloff committed 2024-01-03 08:26:14 -06:00
1 parent fd7c9e0359
commit 2f9b6e7dea
1 file changed
+2 -2
+2 -2
View File
@@ -92,10 +92,10 @@ impl State for TaffyLayout {
attribute, value, ..
} in attributes
{
if let Some(text) = value.as_text() {
if value.as_custom().is_none() {
apply_layout_attributes_cfg(
&attribute.name,
text,
&value.to_string(),
&mut style,
&LayoutConfigeration {
border_widths: BorderWidths {