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

some fixes to icon selection widget #193536

Merged
merged 2 commits into from
Sep 19, 2023
Merged

some fixes to icon selection widget #193536

merged 2 commits into from
Sep 19, 2023

Conversation

sandy081
Copy link
Member

No description provided.

@sandy081 sandy081 enabled auto-merge (squash) September 19, 2023 23:16
@sandy081 sandy081 self-assigned this Sep 19, 2023
@VSCodeTriageBot VSCodeTriageBot added this to the September 2023 milestone Sep 19, 2023
this.focusIcon((this.focusedItemIndex + this.numberOfElementsPerRow) % this.renderedIcons.length);
let nextRowIndex = this.focusedItemIndex + this.numberOfElementsPerRow;
if (nextRowIndex >= this.renderedIcons.length) {
nextRowIndex = (nextRowIndex % this.numberOfElementsPerRow) + 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
nextRowIndex = (nextRowIndex % this.numberOfElementsPerRow) + 1;
nextRowIndex = (nextRowIndex + 1) % this.numberOfElementsPerRow;

Then, I don't think the next line is needed

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. Thanks

@sandy081 sandy081 merged commit e520251 into main Sep 19, 2023
6 checks passed
@sandy081 sandy081 deleted the sandy081/far-walrus branch September 19, 2023 23:47
@github-actions github-actions bot locked and limited conversation to collaborators Nov 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants