Skip to content

Conversation

@ptziegler
Copy link
Contributor

There is no benefit in using our "Designer" figures, outside of dealing with relative instead of absolute coordinates.

This adapts the following edit parts:

  • Horizontal Strut
  • Vertical Strut
  • Horizontal Glue
  • Vertical Glue
  • Rigid Area
  • Glue

There is no benefit in using our "Designer" figures, outside of dealing
with relative instead of absolute coordinates.

This adapts the following edit parts:
- Horizontal Strut
- Vertical Strut
- Horizontal Glue
- Vertical Glue
- Rigid Area
- Glue
@ptziegler ptziegler added this to the 1.21.0 milestone Jul 16, 2025
@ptziegler
Copy link
Contributor Author

image

Comment on lines +81 to +82
int y = 0;
while (y < r.height) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know why the coordinates are calculated like this for the vertical, but not the horizontal edit part. But this calculation is factually wrong.
The graphics instance is translated so that (0, 0) is the top left corner of this figure. So y = r.y paints outside the client area unless y = 0.

@ptziegler ptziegler merged commit dd4f8c2 into eclipse-windowbuilder:master Jul 17, 2025
8 checks passed
@ptziegler ptziegler deleted the migrate-box-figures branch July 17, 2025 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant