Merge pull request #1781 from ealmloff/fix-non-string-layout-tui
Fix non string layout attributes in rink
This commit is contained in:
1 file changed
+2
-2
@@ -92,10 +92,10 @@ impl State for TaffyLayout {
|
|||||||
attribute, value, ..
|
attribute, value, ..
|
||||||
} in attributes
|
} in attributes
|
||||||
{
|
{
|
||||||
if let Some(text) = value.as_text() {
|
if value.as_custom().is_none() {
|
||||||
apply_layout_attributes_cfg(
|
apply_layout_attributes_cfg(
|
||||||
&attribute.name,
|
&attribute.name,
|
||||||
text,
|
&value.to_string(),
|
||||||
&mut style,
|
&mut style,
|
||||||
&LayoutConfigeration {
|
&LayoutConfigeration {
|
||||||
border_widths: BorderWidths {
|
border_widths: BorderWidths {
|
||||||
|
|||||||
Reference in new issue
Block a user