|
|
@ -114,12 +114,6 @@ impl Container {
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn remove_child(&mut self, index: usize) -> &mut Self {
|
|
|
|
|
|
|
|
self.children.remove(index);
|
|
|
|
|
|
|
|
self.remove_child_bounds(index);
|
|
|
|
|
|
|
|
self
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fn add_child_bounds(&mut self) -> &mut Self {
|
|
|
|
fn add_child_bounds(&mut self) -> &mut Self {
|
|
|
|
self.node_bounds.push(ContainerBounds {
|
|
|
|
self.node_bounds.push(ContainerBounds {
|
|
|
|
width: 10,
|
|
|
|
width: 10,
|
|
|
@ -141,11 +135,6 @@ impl Container {
|
|
|
|
self
|
|
|
|
self
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn remove_child_bounds(&mut self, index: usize) -> &mut Self {
|
|
|
|
|
|
|
|
self.node_bounds.remove(index);
|
|
|
|
|
|
|
|
self
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fn calculate_slots_width(&self) -> usize {
|
|
|
|
fn calculate_slots_width(&self) -> usize {
|
|
|
|
self.node_bounds
|
|
|
|
self.node_bounds
|
|
|
|
.iter()
|
|
|
|
.iter()
|
|
|
|