Skip to content

Commit c313131

Browse files
committed
set the width for both columns so the GUI doesn't auto resize when there are no devices selected
1 parent 8a889ae commit c313131

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ui.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ pub(crate) fn draw_running_state(
117117
}
118118

119119
ui.columns(2, |columns| {
120+
columns[0].set_width(612 as f32);
120121
ScrollArea::vertical()
121122
.auto_shrink([false, false])
122123
.show(&mut columns[0], |ui| {
@@ -130,6 +131,7 @@ pub(crate) fn draw_running_state(
130131
});
131132
});
132133

134+
columns[1].set_width(128 as f32);
133135
columns[1].vertical(|ui| {
134136
draw_control_buttons(app, ui, ctx, thread_running);
135137
});

0 commit comments

Comments
 (0)