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

Matrix zone layout : fix diagram padding usage #583

Merged
merged 3 commits into from
Mar 14, 2024

Conversation

tadam50
Copy link
Contributor

@tadam50 tadam50 commented Jan 30, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?
No

What kind of change does this PR introduce?
Bug fix

What is the current behavior?
Diagram padding is no taking into account in Zone Matrix Layout

What is the new behavior (if this is a feature change)?
Diagram padding is taking into account in Zone Matrix Layout

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

@tadam50 tadam50 requested a review from So-Fras January 30, 2024 13:11
@tadam50 tadam50 self-assigned this Jan 30, 2024
@So-Fras So-Fras added the v4.3.0 label Jan 30, 2024
@tadam50 tadam50 force-pushed the matrix-zone-diagram-padding branch from 453f4d9 to c3d4c62 Compare January 30, 2024 15:40
Copy link


public MatrixZoneLayoutModel(String[][] ids, LayoutParameters layoutParameters) {
this.matrix = new Matrix(ids.length, ids[0].length, layoutParameters);
this.snakelinePadding = (int) layoutParameters.getZoneLayoutSnakeLinePadding();
Copy link
Member

Choose a reason for hiding this comment

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

Is there a need to have a type double for zoneLayoutSnakeLinePadding since we always seem to cast it to int ?

tadam50 added 2 commits March 6, 2024 17:29
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
@tadam50 tadam50 force-pushed the matrix-zone-diagram-padding branch from c3d4c62 to bfdc273 Compare March 6, 2024 16:38
Signed-off-by: Thomas ADAM <tadam@silicom.fr>
Copy link

sonarqubecloud bot commented Mar 6, 2024

@So-Fras So-Fras merged commit dfe6150 into main Mar 14, 2024
6 checks passed
@So-Fras So-Fras deleted the matrix-zone-diagram-padding branch March 14, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants