Skip to content

Commit

Permalink
Update to imgui 1.81
Browse files Browse the repository at this point in the history
Changes:

- No more ListBox::calculate_size(...) as this was deprecated upstream
  • Loading branch information
dbr committed Mar 3, 2021
1 parent 2839f76 commit 507d5d5
Show file tree
Hide file tree
Showing 10 changed files with 11,646 additions and 3,373 deletions.
2 changes: 1 addition & 1 deletion imgui-examples/examples/test_window_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ fn show_test_window(ui: &Ui, state: &mut State, opened: &mut bool) {
im_str!("Tilefish"),
];

ListBox::new(im_str!("selectables list")).calculate_size(8, 4).build(ui, || {
ListBox::new(im_str!("selectables list")).build(ui, || {
for (index, name) in names.iter().enumerate() {
let selected = matches!(state.selected_fish2, Some(i) if i == index );
if Selectable::new(name).selected(selected).build(ui) {
Expand Down
Loading

0 comments on commit 507d5d5

Please sign in to comment.