-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Fixed horizontal navigation issue for NavClampRectToVisibleAreaForMoveDir #2221
Fixed horizontal navigation issue for NavClampRectToVisibleAreaForMoveDir #2221
Conversation
When the focused window become inactive don't restore focus to a window with the ImGuiWindowFlags_NoInputs flag. (ocornut#2213)
… unclipped name in the left column is long enough to make its center pass the left-hand-side of the entry on the right, trying to go left would ignore that entry. This fixes it.
Please provide a screenshot with your problematic layout for reference. (We might also want to bake this info somehow because NavScoreItem() > NavClampRectToVisibleAreaForMoveDir() can be called a lot, we can consider this once the right solution is found). |
0c1e5bd
to
bb6a60b
Compare
8b83e0a
to
d735066
Compare
b3b85d8
to
0755767
Compare
c817acb
to
8d39063
Compare
…s beyond columns limits. (#2221)
I thoroughly apologize for not getting on this earlier... I am currently doing a pass at navigation issue and stumbled on this. Pushed fix 00d3f92 + Pushed regression test ocornut/imgui_test_engine@c953209 The fix I pushed is slightly different:
Thank you for your patience 🙇 |
Amended with eed7b0e : the code in |
…s beyond columns limits. (ocornut#2221)
…ped. (ocornut#2221) Amend 00d3f92 + older f2d1472, 0cc20fc + Add ImGuiNavMoveFlags_WrapMask_ for good measure.
Issue:
Trying to move left into this column from the column on its right, would ignore this column.
(Do yell out if this ^ doesn't make any sense)
Changes: