Merge pull request #1781 from ealmloff/fix-non-string-layout-tui

Fix non string layout attributes in rink
This commit is contained in:
Jonathan Kelley 2024-01-04 09:55:33 -08:00 committed by GitHub
commit 60f6ef8402
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {