Skip to content

Commit

Permalink
Add WASM bindings for scrollbar_width
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Jan 18, 2024
1 parent 0e1aa1c commit 80b572b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bindings/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ impl Node {
style.overflow.y = value;
})
}
pub fn setScrollbarWidth(&mut self, value: f32) -> Result<(), JsError> {
with_style_mut!(self, style, style.scrollbar_width = value)
}

// inset
pub fn setInsetTop(&mut self, value: f32, unit: StyleUnit) -> Result<(), JsError> {
Expand Down

0 comments on commit 80b572b

Please sign in to comment.