MCPcopy Create free account
hub / github.com/angular-rust/ux-components / bounds_changed

Method bounds_changed

src/elements/scroll_view.rs:347–359  ·  view source on GitHub ↗

_dx: f32 =0.0, _dy: f32 =0.0, _dw: f32 =0.0, _dh: f32 =0.0

(&self, dx: f32, dy: f32, dw: f32, dh: f32)

Source from the content-addressed store, hash-verified

345
346 // _dx: f32 =0.0, _dy: f32 =0.0, _dw: f32 =0.0, _dh: f32 =0.0
347 fn bounds_changed(&self, dx: f32, dy: f32, dw: f32, dh: f32) {
348 // self.base.bounds_changed(_dx, _dy, _dw, _dh);
349
350 self.refresh_scroll();
351
352 // if self.scrollh.is_some() {
353 self.scrollh.set_y_local(self.h() - 8.0);
354 // }
355
356 // if self.scrollv.is_some() {
357 self.scrollv.set_x_local(self.w() - 8.0);
358 // }
359 }
360
361 fn node(&self) -> Option<Node> {
362 Some(self.node)

Callers

nothing calls this directly

Calls 5

set_y_localMethod · 0.80
set_x_localMethod · 0.80
refresh_scrollMethod · 0.45
hMethod · 0.45
wMethod · 0.45

Tested by

no test coverage detected