Skip to content

update: Fix BreadCrumbComponent use of double #8583

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

Merged
merged 1 commit into from
Jun 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -145,16 +145,16 @@ protected void paintComponent(Graphics g) {

private final T renderer = (T) HtmlRenderer.createLabel();
private Node[] nodes;
private double[] sizes;
private double height;
private int[] sizes;
private int height;

private void measurePrepaint() {
List<Node> path = computeNodePath();

int i = 0;

nodes = path.toArray(new Node[0]);
sizes = new double[path.size()];
sizes = new int[path.size()];

int xTotal = 0;

Expand All @@ -170,7 +170,8 @@ private void measurePrepaint() {
i++;
}

setPreferredSize(new Dimension((xTotal + (nodes.length - 1) * (LEFT_SEPARATOR_INSET + SEPARATOR.getIconWidth() + RIGHT_SEPARATOR_INSET) + START_INSET), USABLE_HEIGHT/*(int) (height + 2 * INSET_HEIGHT)*/));
setPreferredSize(new Dimension((xTotal + (nodes.length - 1) *
(LEFT_SEPARATOR_INSET + SEPARATOR.getIconWidth() + RIGHT_SEPARATOR_INSET) + START_INSET), USABLE_HEIGHT));
}

@Override
Expand Down
Loading