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

Fix SetItemDefaultFocus() consistency #2810

Closed
wants to merge 1 commit into from
Closed

Fix SetItemDefaultFocus() consistency #2810

wants to merge 1 commit into from

Conversation

DomGries
Copy link
Contributor

Fixes the issue that an item which was barely visible (1px) was not being visibly focused. Also always focusing the default item in the center of the surrounding area makes it behave consistently independent of initial visibility. Both of which are being resolved with this change.

Additional suggestion: Introduce optional center_y_ratio parameter to forward to SetScrollHereY() for more control.

Dear ImGui 1.73

Fixes the issue that an item which was barely visible (1px) was not being visibly focused. Also always focusing the default item in the center of the surrounding area makes it behave consistently independent of initial visibility. Both of which are being resolved with this change.

Additional suggestion: Introduce optional center_y_ratio parameter to forward to SetScrollHereY() for more control.
@DomGries
Copy link
Contributor Author

Would need more work, see #2812

@DomGries DomGries closed this Sep 28, 2019
@DomGries DomGries deleted the patch-1 branch September 28, 2019 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants