Skip to content

Commit

Permalink
Fixes the broken tile resize introduced by #5044
Browse files Browse the repository at this point in the history
- Fixes #5061
  • Loading branch information
abey79 committed Feb 6, 2024
1 parent 7174089 commit 555270f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/re_viewport/src/viewport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,6 @@ impl<'a, 'b> egui_tiles::Behavior<SpaceViewId> for TabViewer<'a, 'b> {

fn on_edit(&mut self, edit_action: egui_tiles::EditAction) {
match edit_action {
EditAction::TileResized | EditAction::TileDragged => {}
EditAction::TileDropped => {
// TODO(ab): when we finally stop using egui_tiles as application-level data
// structure, this work-around should be unnecessary.
Expand Down Expand Up @@ -832,9 +831,12 @@ impl<'a, 'b> egui_tiles::Behavior<SpaceViewId> for TabViewer<'a, 'b> {

self.edited = true;
}
EditAction::TabSelected => {
EditAction::TabSelected | EditAction::TileResized => {
self.edited = true;
}
EditAction::TileDragged => {
// no synchronisation needed
}
}
}
}
Expand Down

0 comments on commit 555270f

Please sign in to comment.