Track caller on h_stack and v_stack
This commit is contained in:
parent
6a0740fa6d
commit
02e53025f3
2 changed files with 3 additions and 1 deletions
|
@ -1065,7 +1065,7 @@ impl Interactivity {
|
||||||
{
|
{
|
||||||
cx.focus(&focus_handle);
|
cx.focus(&focus_handle);
|
||||||
// If there is a parent that is also focusable, prevent it
|
// If there is a parent that is also focusable, prevent it
|
||||||
// from trasferring focus because we already did so.
|
// from transferring focus because we already did so.
|
||||||
cx.prevent_default();
|
cx.prevent_default();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ use crate::StyledExt;
|
||||||
/// Horizontally stacks elements.
|
/// Horizontally stacks elements.
|
||||||
///
|
///
|
||||||
/// Sets `flex()`, `flex_row()`, `items_center()`
|
/// Sets `flex()`, `flex_row()`, `items_center()`
|
||||||
|
#[track_caller]
|
||||||
pub fn h_stack() -> Div {
|
pub fn h_stack() -> Div {
|
||||||
div().h_flex()
|
div().h_flex()
|
||||||
}
|
}
|
||||||
|
@ -12,6 +13,7 @@ pub fn h_stack() -> Div {
|
||||||
/// Vertically stacks elements.
|
/// Vertically stacks elements.
|
||||||
///
|
///
|
||||||
/// Sets `flex()`, `flex_col()`
|
/// Sets `flex()`, `flex_col()`
|
||||||
|
#[track_caller]
|
||||||
pub fn v_stack() -> Div {
|
pub fn v_stack() -> Div {
|
||||||
div().v_flex()
|
div().v_flex()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue