Limit combobox item width, use multiple rows

This commit is contained in:
dec05eba
2025-02-05 20:41:11 +01:00
parent b4c85910ce
commit 8c148aceda
7 changed files with 37 additions and 46 deletions

View File

@@ -89,8 +89,7 @@ namespace gsr {
offset = position + offset;
mgl_scissor prev_scissor;
mgl_window_get_scissor(window.internal_window(), &prev_scissor);
const mgl::Scissor prev_scissor = window.get_scissor();
const mgl::vec2f content_size = get_inner_size();
const mgl_scissor new_scissor = {
@@ -150,7 +149,7 @@ namespace gsr {
apply_animation();
limit_scroll(child_height);
mgl_window_set_scissor(window.internal_window(), &prev_scissor);
window.set_scissor(prev_scissor);
double scrollbar_height = 1.0;
if(child_height > 0.001)