Skip to content

Commit

Permalink
Prevent wrap on 'Streams' text
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Feb 14, 2023
1 parent 90c160f commit c901675
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/re_viewer/src/ui/time_panel/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ impl TimePanel {

let size = egui::vec2(self.prev_col_width, 28.0);
ui.allocate_ui_with_layout(size, egui::Layout::top_down(egui::Align::LEFT), |ui| {
ui.set_min_size(size);
// Make sure the size is at least 60 to accommodate the "Streams" text
// so it doesn't end up wrapping
ui.set_min_size(size.max(egui::vec2(60., 28.0)));
ui.add_space(4.0); // hack to vertically center the text
ui.strong("Streams");
})
Expand Down

0 comments on commit c901675

Please sign in to comment.