Skip to content

DnDTabbedPane. Idx for insertion selection fix.#24

Merged
aterai merged 1 commit into
aterai:masterfrom
AndreiKud:master
Feb 23, 2024
Merged

DnDTabbedPane. Idx for insertion selection fix.#24
aterai merged 1 commit into
aterai:masterfrom
AndreiKud:master

Conversation

@AndreiKud

Copy link
Copy Markdown
Contributor

Hello. Thanks for maintaining this repo! I brought two minor improvements for DnDTabbedPane component.

  1. Stopping traversing components after forward/backward buttons are already found.
  2. Fixed incorrect tab insertion idx selection, when a small tab comes before a big tab (more than twice higher/wider)
    Bug:
    bug
    Fix:
    fix

Previously we checked tab rect by translating it backward by its half. I suggest checking halfs of the rect within original bounds. Explicit check for last tab remains the same, but extended to full width instead of half.

@AndreiKud

Copy link
Copy Markdown
Contributor Author

@aterai you will check it when you have time, right?

@aterai

aterai commented Feb 23, 2024

Copy link
Copy Markdown
Owner

you will check it when you have time, right?

Yes, I will check it from now on as I may have time this weekend.

@aterai aterai left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to reproduce the bug in my environment and confirm that the fix works fine.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants