fix: tui values
This commit is contained in:
1 parent
03110b85cd
commit
9c9928d226
3 files changed
+10
-6
No files matched your search
@@ -320,7 +320,7 @@ impl InnerInputState {
|
|||||||
let node_layout = layout.layout(node.state.layout.node.unwrap()).unwrap();
|
let node_layout = layout.layout(node.state.layout.node.unwrap()).unwrap();
|
||||||
let currently_contains = layout_contains_point(node_layout, new_pos);
|
let currently_contains = layout_contains_point(node_layout, new_pos);
|
||||||
|
|
||||||
if currently_contains && clicked {
|
if currently_contains {
|
||||||
try_create_event(
|
try_create_event(
|
||||||
"mousedown",
|
"mousedown",
|
||||||
Arc::new(prepare_mouse_data(mouse_data, node_layout)),
|
Arc::new(prepare_mouse_data(mouse_data, node_layout)),
|
||||||
|
|||||||
@@ -79,9 +79,11 @@ impl ChildDepState for StretchLayout {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// gather up all the styles from the attribute list
|
// gather up all the styles from the attribute list
|
||||||
for &Attribute { name, value, .. } in node.attributes() {
|
for Attribute { name, value, .. } in node.attributes() {
|
||||||
assert!(SORTED_LAYOUT_ATTRS.binary_search(&name).is_ok());
|
assert!(SORTED_LAYOUT_ATTRS.binary_search(name).is_ok());
|
||||||
apply_layout_attributes(name, value, &mut style);
|
if let Some(text) = value.as_text() {
|
||||||
|
apply_layout_attributes(name, text, &mut style);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the root node fills the entire area
|
// the root node fills the entire area
|
||||||
|
|||||||
@@ -78,8 +78,10 @@ impl ParentDepState for StyleModifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// gather up all the styles from the attribute list
|
// gather up all the styles from the attribute list
|
||||||
for &Attribute { name, value, .. } in node.attributes() {
|
for Attribute { name, value, .. } in node.attributes() {
|
||||||
apply_style_attributes(name, value, &mut new);
|
if let Some(text) = value.as_text() {
|
||||||
|
apply_style_attributes(name, text, &mut new);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// keep the text styling from the parent element
|
// keep the text styling from the parent element
|
||||||
|
|||||||
Reference in new issue
Block a user