Store a z-index id per-layer
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
5b906e731d
commit
2c3d9805a4
9 changed files with 50 additions and 49 deletions
|
@ -76,7 +76,7 @@ impl Styles for Div {}
|
|||
|
||||
#[derive(IntoElement)]
|
||||
struct ZIndexExample {
|
||||
z_index: u8,
|
||||
z_index: u16,
|
||||
}
|
||||
|
||||
impl RenderOnce for ZIndexExample {
|
||||
|
@ -166,7 +166,7 @@ impl RenderOnce for ZIndexExample {
|
|||
}
|
||||
|
||||
impl ZIndexExample {
|
||||
pub fn new(z_index: u8) -> Self {
|
||||
pub fn new(z_index: u16) -> Self {
|
||||
Self { z_index }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue