Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Window Resize Grip Resizable #8340

Open
klianc09 opened this issue Jan 22, 2025 · 1 comment
Open

Make Window Resize Grip Resizable #8340

klianc09 opened this issue Jan 22, 2025 · 1 comment

Comments

@klianc09
Copy link

Version/Branch of Dear ImGui:

v1.91.8 WIP

Back-ends:

any

Compiler, OS:

Not Relevant

Full config/build information:

No response

Details:

Hi, I'd like to increase the size of the window resize grip (the triangle in the lower right corner that let's one resize windows), because it's hard to hit on a touchscreen.

I've checked the code and it seems that it's only dependant on FontSize and the WindowRounding.

from imgui.cpp:
const float resize_grip_draw_size = IM_TRUNC(ImMax(g.FontSize * 1.10f, window->WindowRounding + 1.0f + g.FontSize * 0.2f));

Increasing the Font Size is not desirable as that would mean less text can fit on a screen.
Increasing WindowRounding is also not really what I want, but is a potential workaround for now.

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

No response

@ocornut
Copy link
Owner

ocornut commented Jan 23, 2025

There's no way to resize it yet, but note that there's a style.TouchExtraPadding value which is meant to add hit-test padding.

It's generally better than this value is <= style.ItemSpacing*0.5f to avoid overlap between items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants