set_geometry now sets prev_geometry for views
@@ -230,11 +230,15 @@ impl Container {
Container::Container { ref mut geometry, .. } => {
*geometry = geo;
},
- Container::View { ref handle, .. } => {
+ Container::View { ref handle, ref mut prev_geometry, .. } => {
+ if prev_geometry.is_some() {
+ *prev_geometry = Some(geo);
+ } else {
handle.set_geometry(edges, geo);
}
}
}
+ }
pub fn set_layout(&mut self, new_layout: Layout) -> Result<(), String>{
match *self {
