Skip to content

Commit

Permalink
disable smart layout updater for now
Browse files Browse the repository at this point in the history
  • Loading branch information
zrezke committed May 19, 2023
1 parent f92813c commit 73684ec
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions crates/re_viewer/src/ui/viewport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,22 +338,22 @@ impl Viewport {
.entry(visible_space_views.clone())
.or_insert_with(|| {
// TODO(filip): Continue working on this smart layout updater
if let Some(previous_frame_tree) = &self.previous_frame_tree {
let mut tree = previous_frame_tree.clone();
super::auto_layout::update_tree(
&mut tree,
&visible_space_views,
&self.space_views,
self.maximized.is_some(),
);
tree
} else {
super::auto_layout::default_tree_from_space_views(
ui.available_size(),
&visible_space_views,
&self.space_views,
)
}
// if let Some(previous_frame_tree) = &self.previous_frame_tree {
// let mut tree = previous_frame_tree.clone();
// super::auto_layout::update_tree(
// &mut tree,
// &visible_space_views,
// &self.space_views,
// self.maximized.is_some(),
// );
// tree
// } else {
super::auto_layout::default_tree_from_space_views(
ui.available_size(),
&visible_space_views,
&self.space_views,
)
// }
})
.clone();
self.previous_frame_tree = Some(tree.clone());
Expand Down

0 comments on commit 73684ec

Please sign in to comment.