Skip to content

Commit

Permalink
Merge pull request #1 from SwissAS/master
Browse files Browse the repository at this point in the history
Include latest changes of swissas/openblocks
  • Loading branch information
laurentschall authored Nov 29, 2023
2 parents 3444fc4 + 00fe949 commit 3a60d5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/edu/mit/blocks/renderable/RenderableBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ private RenderableBlock(Workspace workspace, WorkspaceWidget parent, Long blockI
this.plugTag = new ConnectorTag(getBlock().getPlug());
this.afterTag = new ConnectorTag(getBlock().getAfterConnector());
this.beforeTag = new ConnectorTag(getBlock().getBeforeConnector());
this.plugTag.setZoomLevel(getZoom());
this.afterTag.setZoomLevel(getZoom());
this.beforeTag.setZoomLevel(getZoom());

this.blockLabel = workspace.getEnv().getBlockLabelBuilder().buildBlockLabel(workspace, blockID);
this.pageLabel = new PageLabel(workspace, getBlock().getPageLabel(), BlockLabel.Type.PAGE_LABEL, false, blockID);
this.add(pageLabel.getJComponent());
Expand Down Expand Up @@ -466,6 +470,7 @@ private boolean synchronizeSockets() {
ConnectorTag tag = this.getConnectorTag(socket);
if (tag == null) {
tag = new ConnectorTag(socket);
tag.setZoomLevel(getZoom());
if (SocketLabel.ignoreSocket(socket)) {
tag.setLabel(null); //ignored sockets have no labels
} else {
Expand Down

0 comments on commit 3a60d5d

Please sign in to comment.