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

Method bounds_changed

src/elements/dropdown_button.rs:203–212  ·  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

201
202 // _dx: f32 =0.0, _dy: f32 =0.0, _dw: f32 =0.0, _dh: f32 =0.0
203 fn bounds_changed(&self, _dx: f32, _dy: f32, _dw: f32, _dh: f32) {
204 // self.base.bounds_changed(_dx, _dy, _dw, _dh);
205
206 if self.state.borrow().is_open {
207 self.list.set_pos(self.x(), self.y() + self.h() + 1.0);
208 }
209 self.list.set_size(self.w(), self.list.h());
210
211 self.label.set_size(self.w() - 1.0, self.h());
212 }
213
214 fn node(&self) -> Option<Node> {
215 Some(self.node)

Callers

nothing calls this directly

Calls 6

set_posMethod · 0.80
xMethod · 0.45
yMethod · 0.45
hMethod · 0.45
set_sizeMethod · 0.45
wMethod · 0.45

Tested by

no test coverage detected