mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-09-20 06:11:57 +00:00
Fix value returned by get_scroll_size (#2445)
The scroll position was returned instead.
This commit is contained in:
parent
d3f96ec323
commit
9f670e1eb0
1 changed files with 3 additions and 3 deletions
|
@ -439,9 +439,9 @@ impl crate::RenderedElementBacking for web_sys::Element {
|
|||
&self,
|
||||
) -> std::pin::Pin<Box<dyn std::future::Future<Output = crate::MountedResult<PixelsSize>>>>
|
||||
{
|
||||
let left = self.scroll_left();
|
||||
let top = self.scroll_top();
|
||||
let result = Ok(PixelsSize::new(left as f64, top as f64));
|
||||
let width = self.scroll_width();
|
||||
let height = self.scroll_height();
|
||||
let result = Ok(PixelsSize::new(width as f64, height as f64));
|
||||
Box::pin(async { result })
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue