Skip to content

Commit

Permalink
fix dynamic_list: auto scale in height with main window
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice committed Dec 9, 2022
1 parent a8afbe7 commit b4b29ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/injector/ui_elements/dynamic_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ view_limits dynamic_list_s::limits(basic_context const &ctx) const {
}
auto secondary_limits = _composer->secondary_axis_limits(ctx);
if (_composer->size()) {
return make_limits(float(_main_axis_full_size), secondary_limits);
return {{secondary_limits.min, float(_main_axis_full_size)},
{secondary_limits.max, full_extent}};
}
}
return {{0, 0}, {full_extent, full_extent}};
Expand Down

0 comments on commit b4b29ee

Please sign in to comment.