Skip to content

fix: icons not having their locations updated#7012

Merged
BeksOmega merged 2 commits intoRaspberryPiFoundation:developfrom
BeksOmega:fix/icon-locations
Apr 24, 2023
Merged

fix: icons not having their locations updated#7012
BeksOmega merged 2 commits intoRaspberryPiFoundation:developfrom
BeksOmega:fix/icon-locations

Conversation

@BeksOmega
Copy link
Copy Markdown
Contributor

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

Fixes #6999

Proposed Changes

Adds a step to the queued render process that updates the location of icons.

Reason for Changes

Elements of a block don't get to decide where they are positioned, but some of them (icons and connections) need to know where they're positioned. Before the code for updating icons was hidden inside moveConnections which was triggered via renderedConnection.tighten. Now it has been separated out so that it is clear what's happening.

Test Coverage

Just manual testing =(

Documentation

N/A

Additional Information

N/A

@BeksOmega BeksOmega requested a review from maribethb April 24, 2023 19:28
@BeksOmega BeksOmega requested a review from a team as a code owner April 24, 2023 19:28
@github-actions github-actions Bot added the PR: fix Fixes a bug label Apr 24, 2023
@BeksOmega BeksOmega merged commit 139bc29 into RaspberryPiFoundation:develop Apr 24, 2023
BeksOmega added a commit that referenced this pull request Apr 26, 2023
* fix: icons not having their locations updated

* chore: fix running headful tests in node

(cherry picked from commit 139bc29)
@BeksOmega BeksOmega mentioned this pull request Apr 26, 2023
4 tasks
@BeksOmega BeksOmega deleted the fix/icon-locations branch April 26, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bubbles (comments, warnings) attached to child blocks are not positioned correctly

2 participants