@effindomv2/fui-rs 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/package.json +1 -1
- package/src/node/helpers.rs +1 -5
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/src/node/helpers.rs
CHANGED
|
@@ -7,7 +7,7 @@ pub fn flex_box() -> FlexBox {
|
|
|
7
7
|
FlexBox::default()
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
pub fn text(content:
|
|
10
|
+
pub fn text(content: impl Into<String>) -> TextNode {
|
|
11
11
|
TextNode::new(content)
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -86,8 +86,6 @@ pub(crate) fn apply_flex_box_props(
|
|
|
86
86
|
props: &FlexBoxProps,
|
|
87
87
|
behavior: NodeBehavior,
|
|
88
88
|
) {
|
|
89
|
-
ui::set_width(handle.raw(), 0.0, Unit::Auto as u32);
|
|
90
|
-
ui::set_height(handle.raw(), 0.0, Unit::Auto as u32);
|
|
91
89
|
ui::set_fill_width(handle.raw(), behavior.fill_width);
|
|
92
90
|
ui::set_fill_height(handle.raw(), behavior.fill_height);
|
|
93
91
|
if let Some(percent) = behavior.fill_width_percent {
|
|
@@ -306,8 +304,6 @@ pub(crate) fn apply_scroll_view_props(
|
|
|
306
304
|
props: &ScrollViewProps,
|
|
307
305
|
behavior: NodeBehavior,
|
|
308
306
|
) {
|
|
309
|
-
ui::set_width(handle.raw(), 0.0, Unit::Auto as u32);
|
|
310
|
-
ui::set_height(handle.raw(), 0.0, Unit::Auto as u32);
|
|
311
307
|
ui::set_fill_width(handle.raw(), behavior.fill_width);
|
|
312
308
|
ui::set_fill_height(handle.raw(), behavior.fill_height);
|
|
313
309
|
if let Some(percent) = behavior.fill_width_percent {
|