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

Method update_container

src/elements/scroll_view.rs:165–175  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

163 }
164
165 pub fn update_container(&self) {
166 let mut state = self.state.borrow_mut();
167 if !state.ready {
168 return;
169 }
170
171 state.child_bounds = self.container.children_bounds();
172
173 self.container.set_w(state.child_bounds.w);
174 self.container.set_h(state.child_bounds.h);
175 }
176
177 //Internal
178

Callers 1

refresh_scrollMethod · 0.45

Calls 3

children_boundsMethod · 0.80
set_wMethod · 0.80
set_hMethod · 0.80

Tested by

no test coverage detected