_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)
| 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) |