diff --git a/conference-stepengine/src/main/java/org/tweetwallfx/conference/stepengine/steps/ShowSchedule.java b/conference-stepengine/src/main/java/org/tweetwallfx/conference/stepengine/steps/ShowSchedule.java index 18733b706..952986538 100644 --- a/conference-stepengine/src/main/java/org/tweetwallfx/conference/stepengine/steps/ShowSchedule.java +++ b/conference-stepengine/src/main/java/org/tweetwallfx/conference/stepengine/steps/ShowSchedule.java @@ -208,10 +208,16 @@ private Pane createSessionNode(final MachineContext context, final SessionData s } topLeft = new HBox(4, topLeftVBox, speakerImages); } else { - var speakerImages = new HBox(config.avatarSpacing, sessionData.speakerObjects.stream() + var speakerImages = new Pane(); + var images = sessionData.speakerObjects.stream() .map(speaker -> createSpeakerImage(speakerImageProvider, speaker)) - .toArray(Node[]::new) - ); + .toList(); + for (int i = 0; i < images.size(); i++) { + var image = images.get(i); + image.setLayoutX(i * (config.avatarSize + config.avatarSpacing)); + image.setLayoutY(2); + speakerImages.getChildren().add(image); + } topLeft = new HBox(4, topLeftVBox, speakerImages); } } diff --git a/conference-stepengine/src/main/java/org/tweetwallfx/conference/stepengine/steps/ShowTopRated.java b/conference-stepengine/src/main/java/org/tweetwallfx/conference/stepengine/steps/ShowTopRated.java index f8bd5c05a..de3307c76 100644 --- a/conference-stepengine/src/main/java/org/tweetwallfx/conference/stepengine/steps/ShowTopRated.java +++ b/conference-stepengine/src/main/java/org/tweetwallfx/conference/stepengine/steps/ShowTopRated.java @@ -181,10 +181,16 @@ private Pane createTalkNode(final MachineContext context, final VotedTalk votedT } topLeft = new HBox(4, topLeftVBox, speakerImages); } else { - var speakerImages = new HBox(config.avatarSpacing, votedTalk.speakers.stream() + var speakerImages = new Pane(); + var images = votedTalk.speakers.stream() .map(speaker -> createSpeakerImage(speakerImageProvider, speaker)) - .toArray(Node[]::new) - ); + .toList(); + for (int i = 0; i < images.size(); i++) { + var image = images.get(i); + image.setLayoutX(i * (config.avatarSize + config.avatarSpacing)); + image.setLayoutY(2); + speakerImages.getChildren().add(image); + } topLeft = new HBox(4, topLeftVBox, speakerImages); } }